Search Gradle plugins

Version 1.1.3

Created 29 June 2016.

This is a gradle plugin that provides support for semantic versioning of builds. It is quite easy to use and extremely configurable. The plugin allows you to bump the major, minor, and patch version based on the latest version, which is identified from a git tag. It also allows you to bump pre-release versions based on a scheme that you define. The version can be bumped by using version-component-specific tasks or can be bumped automatically based on the contents of a commit message. If no tasks from the plugin are specifically invoked, the plugin will increment the version-component with the lowest precedence; this is usually the patch version, but can be the pre-release version if the latest version is a pre-release one.

Add this plugin to your build using the plugins DSL:

plugins {
  id("net.vivin.gradle-semantic-build-versioning") version "1.1.3"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("net.vivin.gradle-semantic-build-versioning:net.vivin.gradle-semantic-build-versioning.gradle.plugin:1.1.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("net.vivin.gradle-semantic-build-versioning")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("net.vivin.gradle-semantic-build-versioning:net.vivin.gradle-semantic-build-versioning.gradle.plugin:1.1.3")
      }
    }
    
    apply(plugin = "net.vivin.gradle-semantic-build-versioning")
  • Applying plugins to all subprojects .