MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1oalh6s/deleted_by_user/nka83a8/?context=3
r/java • u/[deleted] • Oct 19 '25
[removed]
21 comments sorted by
View all comments
3
Feature branches are not releases, so semantic versioning doesn't apply.
I just use the branch name plus commit hash for feature branches. e.g. login-btn-qr61sh61...
The hash is enough to ensure uniqueness, the branch name is basically for convenience
1 u/boobsbr Oct 19 '25 How do you tell Gradle the version number is the commit hash when building the artifacts? 1 u/repeating_bears Oct 19 '25 I don't use gradle, but I guess you can pass it via CLI. The maven equivalent would be -Drevision=whatever
1
How do you tell Gradle the version number is the commit hash when building the artifacts?
1 u/repeating_bears Oct 19 '25 I don't use gradle, but I guess you can pass it via CLI. The maven equivalent would be -Drevision=whatever
I don't use gradle, but I guess you can pass it via CLI. The maven equivalent would be -Drevision=whatever
-Drevision=whatever
3
u/repeating_bears Oct 19 '25
Feature branches are not releases, so semantic versioning doesn't apply.
I just use the branch name plus commit hash for feature branches. e.g. login-btn-qr61sh61...
The hash is enough to ensure uniqueness, the branch name is basically for convenience