gaul / modernizer-maven-plugin

Detect uses of legacy Java APIs
Apache License 2.0
368 stars 53 forks source link

Q: How do you release? #261

Open cstamas opened 1 month ago

cstamas commented 1 month ago

Asking, as https://github.com/gaul/modernizer-maven-plugin/blob/8ddb06e85d9aa4cdb45504f937d6d4f9ec15d57d/pom.xml#L13 (current master!) still shows version 2.9.0! This means if anyone rebuilds locally, will replace the release downloaded from Maven Central.

gaul commented 1 month ago

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 commented 1 month ago

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