Search Gradle plugins

Version 1.0.5-2-gcdf8c9b

Created 29 September 2018.

Sets project version based on git tags

Add this plugin to your build using the plugins DSL:

plugins {
  id("ch.avelon.git-version-gradle-plugin") version "1.0.5-2-gcdf8c9b"
}

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