Search Gradle plugins

lazy.zoo.gradle.git-data-plugin

Lightweight plugin to get current git branch information and help with project versioning based on it

https://github.com/sergii-kuku/gradle-git-plugin

Version 1.1.0 (latest)

Created 23 February 2020.

Lightweight plugin to get specified (or current) git branch information

Using the plugins DSL:

plugins {
  id "lazy.zoo.gradle.git-data-plugin" version "1.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.lazy.zoo.gradle:git-data-plugin:1.1.0"
  }
}

apply plugin: "lazy.zoo.gradle.git-data-plugin"

Using the plugins DSL:

plugins {
  id("lazy.zoo.gradle.git-data-plugin") version "1.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.lazy.zoo.gradle:git-data-plugin:1.1.0")
  }
}

apply(plugin = "lazy.zoo.gradle.git-data-plugin")

Learn how to apply plugins to subprojects