License: MIT CircleCI Gradle Plugin Portal
Gradle plugin that provides Semantic Versioning with auto-increment features.
Add it in your project build.gradle.kts at the end of plugins.
Using the plugins DSL:
plugins {
id("com.sherepenko.gradle.plugin-build-version") version "x.y.z"
}Using legacy plugin application:
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.sherepenko.gradle.plugin-build-version:x.y.z")
}
}
apply(plugin = "com.sherepenko.gradle.plugin-build-version")Given a version number MAJOR.MINOR.PATCH, increment the:
MAJORversion when you make incompatible API changes,MINORversion when you add functionality in a backward compatible manner, andPATCHversion when you make backward compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
incrementMajorwill increment theMAJORand set theMINORandPATCHversions to0;incrementMinorwill increment theMINORand set thePATCHversion to0;incrementPatchwill increment thePATCHversion;prepareReleaseVersionwill prepare release version by trimming pre-release and build metadata