Search Gradle plugins

me.qoomon.git-versioning

This extension will adjust the project version, based on current git branch or tag.

https://github.com/qoomon/gradle-git-versioning-plugin

Version 1.4.0 (latest)

Created 30 November 2019.

This extension will adjust the project version, based on current git branch or tag.

Using the plugins DSL:

plugins {
  id "me.qoomon.git-versioning" version "1.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "me.qoomon:gradle-git-versioning-plugin:1.4.0"
  }
}

apply plugin: "me.qoomon.git-versioning"

Using the plugins DSL:

plugins {
  id("me.qoomon.git-versioning") version "1.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("me.qoomon:gradle-git-versioning-plugin:1.4.0")
  }
}

apply(plugin = "me.qoomon.git-versioning")

Learn how to apply plugins to subprojects