Search Gradle plugins

Version 0.0.3 (latest)

Created 24 December 2018.

Use Git to determine build version plugin

Using the plugins DSL:

plugins {
  id "net.karlmartens.gitversion" version "0.0.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.karlmartens.gitversion:gitversion-plugin:0.0.3"
  }
}

apply plugin: "net.karlmartens.gitversion"

Using the plugins DSL:

plugins {
  id("net.karlmartens.gitversion") version "0.0.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.karlmartens.gitversion:gitversion-plugin:0.0.3")
  }
}

apply(plugin = "net.karlmartens.gitversion")

Learn how to apply plugins to subprojects