Search Gradle plugins

com.bisiach.gradle.gitversion-plugin

Makes available all GitVersion properties to the gradle build (i.e. GitVersion.SemVer). Run task GitVersion for a list of all properties. Requires GitVersion installed

https://github.com/andreasbisiach/gradle-gitversion-plugin

Sources: https://dev.azure.com/bisiachconsulting/_git/gradle-gitversion-plugin

Version 1.0.2 (latest)

Created 24 May 2019.

Makes available all GitVersion properties to the gradle build (i.e. GitVersion.SemVer). Run task GitVersion for a list of all properties. Requires GitVersion installed

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.bisiach.gradle.gitversion-plugin") version "1.0.2"
}

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