Search Gradle plugins

de.timroes.git-version

Owner: Tim Roes

A simple gradle plugin to determine the version number from git.

https://github.com/timroes/gradle-git-version

Version 0.1.0

Created 24 June 2015.

A simple gradle plugin to determine the version number from git.

Using the plugins DSL:

plugins {
  id "de.timroes.git-version" version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.de.timroes.gradle:git-version:0.1.0"
  }
}

apply plugin: "de.timroes.git-version"

Using the plugins DSL:

plugins {
  id("de.timroes.git-version") version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.de.timroes.gradle:git-version:0.1.0")
  }
}

apply(plugin = "de.timroes.git-version")

Learn how to apply plugins to subprojects