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.

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.vivin:gradle-semantic-build-versioning:1.1.3")
  }
}

apply(plugin = "net.vivin.gradle-semantic-build-versioning")

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.vivin:gradle-semantic-build-versioning:1.1.3"
  }
}

apply plugin: "net.vivin.gradle-semantic-build-versioning"

Learn how to apply plugins to subprojects