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)

1.0.2

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

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.bisiach.gradle.gitversion-plugin:gradle-gitversion-plugin:1.0.2")
  }
}

apply(plugin = "com.bisiach.gradle.gitversion-plugin")

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.bisiach.gradle.gitversion-plugin:gradle-gitversion-plugin:1.0.2"
  }
}

apply plugin: "com.bisiach.gradle.gitversion-plugin"

Learn how to apply plugins to subprojects