Search Gradle plugins

io.github.offrange.git-semantic-versioning

A Gradle plugin that automatically versions your project based on Git tags, following the Semantic Versioning 2.0 specification.

https://github.com/OffRange/git-semver-gradle-plugin

Sources: https://github.com/offrange/git-semver-gradle-plugin.git

Version 0.2.5 (latest)

Created 31 July 2024.

A Gradle plugin that automatically versions your project based on Git tags, following the Semantic Versioning 2.0 specification.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.offrange.git-semantic-versioning") version "0.2.5"
}

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("io.github.offrange.git-semantic-versioning:io.github.offrange.git-semantic-versioning.gradle.plugin:0.2.5")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.offrange.git-semantic-versioning")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.offrange.git-semantic-versioning:io.github.offrange.git-semantic-versioning.gradle.plugin:0.2.5")
      }
    }
    
    apply(plugin = "io.github.offrange.git-semantic-versioning")
  • Applying plugins to all subprojects .