Search Gradle plugins

org.unbroken-dome.gitversion

A plugin that helps in determining the build version from a Git repository.

https://github.com/unbroken-dome/gradle-gitversion-plugin

Version 0.10.0 (latest)

Created 20 March 2018.

A plugin that helps in determining the build version from a Git repository.

Using the plugins DSL:

plugins {
  id "org.unbroken-dome.gitversion" version "0.10.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.unbroken-dome.gradle-plugins:gradle-gitversion-plugin:0.10.0"
  }
}

apply plugin: "org.unbroken-dome.gitversion"

Using the plugins DSL:

plugins {
  id("org.unbroken-dome.gitversion") version "0.10.0"
}

Using legacy plugin application:

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

apply(plugin = "org.unbroken-dome.gitversion")

Learn how to apply plugins to subprojects