Search Gradle plugins

Version 1.5.2 (latest)

Created 31 July 2019.

Auto-generates version class file using Git and Gradle

Using the plugins DSL:

plugins {
  id "com.peterabeles.gversion" version "1.5.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.peterabeles.gversion:gversion-plugin:1.5.2"
  }
}

apply plugin: "com.peterabeles.gversion"

Using the plugins DSL:

plugins {
  id("com.peterabeles.gversion") version "1.5.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.peterabeles.gversion:gversion-plugin:1.5.2")
  }
}

apply(plugin = "com.peterabeles.gversion")

Learn how to apply plugins to subprojects