-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZOOKEEPER-3786: Simplify version generation #1310
ZOOKEEPER-3786: Simplify version generation #1310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
I would keep Eclipse stuff as a separate work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay about the dropped test.
I misunderstood the meaning of the test
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT)
FWIW, I would have loved to simplify the API for the version information as well (I think the The only thing changed from an end-user perspective is the removal of VerGen (and its unit test), but I see VerGen as a build utility, rather than any kind of API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the idea and the modifications looks good, thanks! :)
I was testing the patch locally using maven 3.5.3.
./bin/zkServer.sh version
works too
LGTM, +1
retest maven build |
I'll merge it to master. |
I think it is not worth to merge to 3.6 and 3.5 |
ok, agree. (also it changes the "GMT" string to "UTC", what is not a huge thing, but a change in the version string printed out by |
merged to the master branch, thanks @ctubbsii ! |
No problem. And yes, I agree that it shouldn't be backported. Master-only is fine. |
Workaround for exec-maven-plugin treating an empty `<argument>${mvngit.commit.id}</argument>` as null and passing an incorrect number of arguments to VerGen. This change allows the revision to be omitted in the command-line args to VerGen. This allows the mavanagaiata-maven-plugin to provide the git commit id, when available, to the VerGen command. This change is superseded in ZooKeeper 3.7.0 and later by ZOOKEEPER-3786 (#1310), which simplifies generating the version information and removes VerGen. Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <szalay.beko.mate@gmail.com> Closes #1321 from ctubbsii/fix-vergen-for-36-mavanagaiata
Workaround for exec-maven-plugin treating an empty `<argument>${mvngit.commit.id}</argument>` as null and passing an incorrect number of arguments to VerGen. This change allows the revision to be omitted in the command-line args to VerGen. This allows the mavanagaiata-maven-plugin to provide the git commit id, when available, to the VerGen command. This change is superseded in ZooKeeper 3.7.0 and later by ZOOKEEPER-3786 (#1310), which simplifies generating the version information and removes VerGen. Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <szalay.beko.mate@gmail.com> Closes #1321 from ctubbsii/fix-vergen-for-36-mavanagaiata
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Add m2e configuration for build plugin executions to be ignored by Eclipse, for developers (like me) using Eclipse IDE 4. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT) Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786 Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org> Closes apache#1310 from ctubbsii/use-resource-filtering-for-version-info
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Add m2e configuration for build plugin executions to be ignored by Eclipse, for developers (like me) using Eclipse IDE 4. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT) Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786 Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org> Closes apache#1310 from ctubbsii/use-resource-filtering-for-version-info
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Add m2e configuration for build plugin executions to be ignored by Eclipse, for developers (like me) using Eclipse IDE 4. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT) Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786 Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org> Closes apache#1310 from ctubbsii/use-resource-filtering-for-version-info
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Add m2e configuration for build plugin executions to be ignored by Eclipse, for developers (like me) using Eclipse IDE 4. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT) Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786 Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org> Closes apache#1310 from ctubbsii/use-resource-filtering-for-version-info
Simplify generation of VersionInfoMain.java and Info.java by using maven-resource-plugin's built-in resource filtering at build time. This eliminates the need to use VerGen to generate java source files during the build. Also make other slight pom improvements: 1. Remove trailing tab character in Ted's name in pom.xml 2. Simplify spotbugs skipping in contrib pom.xml 3. Add m2e configuration for build plugin executions to be ignored by Eclipse, for developers (like me) using Eclipse IDE 4. Format build time in a more international-friendly and less ambiguous way (year first, then month, then day, using UTC instead of GMT) Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786 Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org> Closes apache#1310 from ctubbsii/use-resource-filtering-for-version-info
Simplify generation of VersionInfoMain.java and Info.java by using
maven-resource-plugin's built-in resource filtering at build time.
This eliminates the need to use VerGen to generate java source files
during the build.
Also make other slight pom improvements:
Eclipse, for developers (like me) using Eclipse IDE
way (year first, then month, then day, using UTC instead of GMT)
Link to issue: https://issues.apache.org/jira/browse/ZOOKEEPER-3786