Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 2.08 KB

RELEASE.adoc

File metadata and controls

54 lines (31 loc) · 2.08 KB

Releasing

Main branch

The main branch is the development branch. It is (for most projects) never released, only branched.

The pom.xml-version of the main branch is REL-<major>.<minor>-SNAPSHOT

Updating major version

This can best be done manually, using maven

mvn -DnewVersion=REL-<major>.0-SNAPSHOT versions:set

And then commit and push the new pom.xmls.

Release branch

Most POMS-projects are released from release branches (as is the practice at VPRO).

NOTE

Some VPRO-projects are released directly from main. Normally these are quite inactive projects. These projects do not have a patch version. main is REL-<major>.<minor>-SNAPSHOT and a release are REL-<major>.<minor>

Release branches have a name according to this scheme: REL-<major>.<minor>-SNAPSHOT

The pom.xml-version of a release branch is REL-<major>.<minor>.<patch>-SNAPSHOT

A release branch can be created with the following github action: create branch. This will branch main, update the version in both this new branch (to include an initial patchversion .0) and in main (to increase the minor version by one)

Release

A release branch can be released via release. This results a tag with this scheme: REL-<major>.<minor>.<patch>, and the artifacts are via sonatype published to maven central.

If this for some reason fails, it can be retried by triggering the normal maven build on the tag.

Something it is sufficient to manually 'release' repositories in https://oss.sonatype.org/#stagingRepositories (use credentials from 1password).

Manual

mvn release:branch -DbranchName=REL-5.10-SNAPSHOT -DdevelopmentVersion=5.11-SNAPSHOT
git checkout REL-5.10-SNAPSHOT
mvn -Pdeploy,ossrh release:prepare release:perform -DreleaseVersion=5.10.0 -DdevelopmentVersion=5.10.1-SNAPSHOT

If you want to release to vpro nexus, don’t use the profiles.