Search Gradle plugins

Version 0.10.0 (latest)

0.10.0

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 = 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")

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"

Learn how to apply plugins to subprojects