Skip to content
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

Fix the version set in the pom.xml for a release #26

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

julienrf
Copy link
Contributor

Although the publish workflow works, I noticed that the published pom.xml file still contains a confusing version number. See e.g.

https://repo1.maven.org/maven2/com/scylladb/alternator/load-balancing/1.0.0/load-balancing-1.0.0.pom

(Which incorrectly sets the version to 1.0.0-SNAPSHOT instead of 1.0.0)

This might be a problem because tooling may use the wrong version. See e.g.

https://central.sonatype.com/artifact/com.scylladb.alternator/load-balancing/versions

We fix that by using the versions-maven-plugin and changing the version in the pom.xml file before running the deploy command.

See the documentation: https://www.mojohaus.org/versions/versions-maven-plugin/set-mojo.html

Although the publish workflow works, I noticed that the published pom.xml file still contains a confusing version number. See e.g.

https://repo1.maven.org/maven2/com/scylladb/alternator/load-balancing/1.0.0/load-balancing-1.0.0.pom

(Which incorrectly sets the version to `1.0.0-SNAPSHOT` instead of `1.0.0`)

This might be a problem because tooling may use the wrong version. See e.g.

https://central.sonatype.com/artifact/com.scylladb.alternator/load-balancing/versions

We fix that by using the `versions-maven-plugin` and changing the version in the pom.xml file before running the `deploy` command.

See the documentation: https://www.mojohaus.org/versions/versions-maven-plugin/set-mojo.html
@yaronkaikov yaronkaikov merged commit 80bb657 into scylladb:master Jul 17, 2024
1 check passed
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