Skip to content

Fix incorrect handling of -RC suffix in version#1466

Merged
mjameswh merged 3 commits intotemporalio:masterfrom
mjameswh:graddle-version-rc
Sep 30, 2022
Merged

Fix incorrect handling of -RC suffix in version#1466
mjameswh merged 3 commits intotemporalio:masterfrom
mjameswh:graddle-version-rc

Conversation

@mjameswh
Copy link
Copy Markdown
Contributor

What was changed

Rewrite the way the gradle build script determine the version number.

Why?

Previous logic would produce incorrect version number if git tag was of the form 1.17.0-RC1-2, which would cause further build to fail.
See: https://buildkite.com/temporal/java-sdk-public/builds/1877#01838a2b-de0c-42e7-b44a-fe541f1e4570/791-853

@mjameswh mjameswh marked this pull request as ready for review September 30, 2022 15:19
@Spikhalskiy
Copy link
Copy Markdown
Contributor

Spikhalskiy commented Sep 30, 2022

0.20.0-RC1-1-g000a42a -> 0.20.0-RC2-1-SNAPSHOT

will it be hard to change the behavior to
0.20.0-RC1-1-g000a42a -> 0.20.0-SNAPSHOT
instead?
And for all other postfixes -> 0.21.0-SNAPSHOT.

@mjameswh
Copy link
Copy Markdown
Contributor Author

0.20.0-RC1-1-g000a42a -> 0.20.0-RC2-1-SNAPSHOT

will it be hard to change the behavior to 0.20.0-RC1-1-g000a42a -> 0.21.0-SNAPSHOT instead?

Very easy, but I think it is wrong. Conceptually, 0.20.0-RC1 specifically means that the previous version was 0.19.0 and that you are now in the process of moving to 0.20.0, not 0.21.0...

But I won't fight on this. Your call.

@Spikhalskiy
Copy link
Copy Markdown
Contributor

@mjameswh you are right, corrected the proposal.

Comment thread gradle/versioning.gradle Outdated
@mjameswh mjameswh merged commit 46a7f83 into temporalio:master Sep 30, 2022
@mjameswh mjameswh deleted the graddle-version-rc branch September 30, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants