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

Version 0.0.7

Created 22 August 2018.

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.0.7"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects