Search Gradle plugins

Version 0.0.4 (latest)

0.0.4

Created 06 September 2019.

Use Git to determine build version plugin

Using the plugins DSL:

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

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "net.karlmartens.gitversion"

Learn how to apply plugins to subprojects