Search Gradle plugins

com.bisiach.gradle.plugins.gitversion

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://dev.azure.com/bisiach/gradle-gitversion

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

Version 1.1.1 (latest)

Created 15 February 2021.

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.plugins.gitversion") version "1.1.1"
}

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