If a commit lands on master, and `cpublish.skip` is false, you can have confidence that the gradle `project.version` includes a new value. Running `gradle uploadArchives` to publish a new release will work.
If a commit lands on master, and `cpublish.skip` is false, you can have confidence that the gradle `project.version` includes a new value. Running `gradle uploadArchives` to publish a new release will work.
TODO: currently depend on Jenkins to tag the release, provide a task to do this from Gradle
After the `uploadArchives` task completes, you can have Jenkins tag the release and push the tag to the repository.
1. In your Jenkins build job, in the **Build** section, add a `Execute system Groovy script` step, and have it run a copy of the provided [artifact-version.groovy](artifact-version.groovy).
2. In the same job, in the **Post-build actions** section, add a `Git Publisher` step, and configure it: