Closed joelittlejohn closed 1 year ago
I wonder if git tag's could be used for that (keeping the version number up to date) 🤔
@unkish Excellent point. Ideally, we should just be able to tag a new release, and all activities (including everything that happens in the upload release script) should be triggered by the creation of a new tag.
Another option might be to do similar solution as Rafael Winterhalter has in byte-buddy-gradle-plugin
.
It looks like the version is being read from pom.xml
(in bytebuddy.gradle
which is loaded/applied by build.gradle
) and publishing is happening via exec-maven-plugin
by invoking gradle
and passing params to it.
Great plan @unkish. I was thinking exactly the same, and I have already made some local changes this week to take version as an arg on the command line. Seems to work well.
We can either call from mvn during release, or just invoke as a release step from bash.
The important file here is
jsonschema2pojo-gradle-plugin/build.gradle
. We'll give some thought to how to keep the version number up to date, but my plan is to add a step in the release process to run./gradlew publishPlugins
.Closes #282.