Search Gradle plugins

Version 0.2 (latest)

0.2

Created 10 November 2016.

Gradle Git version plugin.

Using the plugins DSL:

plugins {
  id("com.github.ngyewch.git-version") version "0.2"
}

Using legacy plugin application:

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

apply(plugin = "com.github.ngyewch.git-version")

Using the plugins DSL:

plugins {
  id "com.github.ngyewch.git-version" version "0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.ngyewch:gradle-git-version:0.2"
  }
}

apply plugin: "com.github.ngyewch.git-version"

Learn how to apply plugins to subprojects