Search Gradle plugins

com.dmdirc.git-version

Gradle plugin to automatically set versions based on git tags

Version 1.0

1.0

Created 10 January 2015.

Using the plugins DSL:

plugins {
  id("com.dmdirc.git-version") version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.dmdirc:git-version:1.0")
  }
}

apply(plugin = "com.dmdirc.git-version")

Using the plugins DSL:

plugins {
  id "com.dmdirc.git-version" version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.dmdirc:git-version:1.0"
  }
}

apply plugin: "com.dmdirc.git-version"

Learn how to apply plugins to subprojects