-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Bump version ids on a new release #105657
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
Conversation
94dcfe3 to
8086265
Compare
| return Optional.of(versionJava); | ||
| } | ||
|
|
||
| private static final int VERSION_ADDITION = 1000; |
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.
This won't be correct for bugfix version, right? It would need to be a patch?
| static Optional<CompilationUnit> addVersionId(CompilationUnit java, Version releaseVersion) { | ||
| TypeDeclaration<?> type = java.getType(0); | ||
|
|
||
| String newVersionField = "RELEASE_" + releaseVersion.toString().replace('.', '_'); |
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.
This name doesn't seem appropriate. It might end up being the release version, but other versions might be added before release. Could we instead name it something like "INITIAL_WHATEVER"? The version collapsing can then rename the constant as appropriate for what is actually released.
| writeOutNewContents(transportVersionJava, modifiedTv.get()); | ||
| } | ||
|
|
||
| Path indexVersionJava = rootDir.resolve(INDEX_VERSIONS_FILE_PATH); |
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.
I thought we were only going to bump transport versions on release?
|
This is an old PR, and somewhat out of date - it's an outline of what is needed, but more work is required to update it. |
Add an option to bump transport and index version ids on a new release, controlled by the build automation
Relates #105295