Skip to content

h-sslefree/semver-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semver-maven-plugin

Build Status Quality Gate Status

The semver-maven-plugin is used to determine the next version of a MAVEN project. Symantic versioning is used to specify the version symantics.

Check: semver.org for more information

Usage

Include the following depedency in your pom.xml

<plugin>
  <groupId>nl.hasslefree.maven.plugins</groupId>
  <artifactId>semver-maven-plugin</artifactId>
  <version>3.3.1</version>
</plugin>

Run configurations

You have to specify the configuration-tag to set the RUN_MODE.

<plugin>
  <groupId>nl.hasslefree.maven.plugins</groupId>
  <artifactId>semver-maven-plugin</artifactId>
  <version>3.3.1</version>
</plugin>

The goals that use the maven-release-plugin are attached to RUN_MODES:

  • RELEASE
  • RELEASE_BRANCH
  • RELEASE_BRANCH_RPM

It generates the release.properties and then the release:prepare-goal can be used to make the maven release-artifact.

The goals that are native are attached to RUNMODES:

  • NATIVE
  • NATIVE_BRANCH
  • NATIVE_BRANCH_RPM

The native-method is developed in version: 3.0.0 to get rid of the dependency on the maven-release-plugin.

Goals

  • patch

    Create a bug-fix on your project: 0.0.x.

  • minor

    Create a non-breaking new feature on your project: 0.x.0.

  • major

    Create a breaking changes in your project: x.0.0.

  • rollback

    Rollback a patch, minor or major version. Also deletes created GIT-tags on local and remote repository.

  • cleanup-git-tags

    @Deprecated

    Cleanup remote and local **build-**tags. Run before the build-server makes a release.

Run the goals

The goals that use the maven-release-plugin are attached to RUNMODES:

  • RELEASE
  • RELEASE_BRANCH
  • RELEASE_BRANCH_RPM

To run the goals please execute the following commands:

  • mvn semver:patch release:prepare
  • mvn semver:minor release:prepare
  • mvn semver:major release:prepare

The goals that are native are attached to RUNMODES:

  • NATIVE
  • NATIVE_BRANCH
  • NATIVE_BRANCH_RPM

To run the goals please execute the following commands:

  • mvn semver:patch
  • mvn semver:minor
  • mvn semver:major
  • mvn semver:rollback

Build

To build the semver-maven-plugin, execute the following command:

mvn clean package

This way you can use a SNAPSHOT-version to test in your applications.

Development

Formatting code

Run mvn fmt:format to format your code according to the google-style.

Tests

Run mvn test to start the unit test suite

About

The semver-maven-plugin is used to determine the next version of a MAVEN project. Symantic versioning is used to specify the version symantics.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages