Version handling for Gradle projects.
plugins {
id("de.lancom.genesis.version") version "<version>"
}genesisVersion {
withHotfixDigits(0)
withType("default"|"snapshot"|"release"|"hotfix"|"build")
withTagPrefix("VERSION-")
withBranch("master")
}Does not modify the configured version.
Replaces the version qualifier with "SNAPSHOT"
Removes the version qualifier
Uses the next free hotfix version for the given version available in the publishing repository
Replaces the version qualifier the git commit hash and the system user
Prints the project version.
Creates a git tag using the project version and tag prefix.
Checks that the project version is newer that the one configured in the latest commit of the configured git branch.
Checks that the project version is newer that the one latest one published in the publishing maven repository.
An example project can be found in the examples/project.
Execute ./gradlew -p example <tasks> to run tasks of the example project.