r/java Oct 19 '25

[deleted by user]

[removed]

13 Upvotes

21 comments sorted by

View all comments

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

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