Search Gradle plugins

Version 1.0.0-2-g742ce44

Created 05 October 2018.

Sets project version based on git tags

Using the plugins DSL:

plugins {
  id "ch.avelon.git-version-gradle-plugin" version "1.0.0-2-g742ce44"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "ch.avelon:git-version-gradle-plugin:1.0.0-2-g742ce44"
  }
}

apply plugin: "ch.avelon.git-version-gradle-plugin"

Using the plugins DSL:

plugins {
  id("ch.avelon.git-version-gradle-plugin") version "1.0.0-2-g742ce44"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("ch.avelon:git-version-gradle-plugin:1.0.0-2-g742ce44")
  }
}

apply(plugin = "ch.avelon.git-version-gradle-plugin")

Learn how to apply plugins to subprojects