Search Gradle plugins

com.moonlitdoor.git-version

A Gradle plugin that sets various properties available for use as the version based on the git repository.

https://github.com/moonlitdoor/mld-git-version

Sources: https://github.com/moonlitdoor/mld-git-version

Version 0.1.1 (latest)

0.1.1

Created 13 February 2019.

A Gradle plugin that sets various properties available for use as the version based on the git repository.

Using the plugins DSL:

plugins {
  id("com.moonlitdoor.git-version") version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.moonlitdoor.git-version:git-version:0.1.1")
  }
}

apply(plugin = "com.moonlitdoor.git-version")

Using the plugins DSL:

plugins {
  id "com.moonlitdoor.git-version" version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.moonlitdoor.git-version:git-version:0.1.1"
  }
}

apply plugin: "com.moonlitdoor.git-version"

Learn how to apply plugins to subprojects