Search Gradle plugins

Version 0.1

Created 18 October 2016.

Gradle Git version plugin.

Using the plugins DSL:

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

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.1")
  }
}

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects