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

Q: How do you release? #261

Open
cstamas opened this issue May 23, 2024 · 2 comments
Open

Q: How do you release? #261

cstamas opened this issue May 23, 2024 · 2 comments

Comments

@cstamas
Copy link
Contributor

cstamas commented May 23, 2024

Asking, as

<version>2.9.0</version>
(current master!) still shows version 2.9.0! This means if anyone rebuilds locally, will replace the release downloaded from Maven Central.

@gaul
Copy link
Owner

gaul commented May 23, 2024

Looks like I missed a step! I manually run these commands for every release:

git rebase upstream/master
mvn versions:set -DnewVersion=1.2.2
git add -p
git commit -m 'modernizer-maven-plugin 1.2.2 release'
\mvn clean deploy -P release
git tag -a modernizer-maven-plugin-1.2.2 -m 'modernizer-maven-plugin 1.2.2 release'
mvn versions:set -DnewVersion=1.3.0-SNAPSHOT
git add -p
git commit -m 'Bump to 1.3.0-SNAPSHOT'
git push upstream master
git push upstream --tags

I haven't changed this process in 10 years -- is there a better way?

@cstamas
Copy link
Contributor Author

cstamas commented May 23, 2024

No, this is good. I was curious in several things:

  • do you use maven-release-plugin (nope)
  • do you use nexus-staging-maven-plugin (nope: good, that POS should be ditched from the build)
  • these two things I wanted to know to continue on "cleanup" trail, as next is removal of parent POM from 2011 and now as I got info I wanted, removal of nx staging plugin as well.

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

No branches or pull requests

2 participants