Search Gradle plugins

com.gladed.androidgitversion

A gradle plugin to calculate Android-friendly version names and codes from git tags

https://github.com/gladed/gradle-android-git-version

Version 0.2.5

Created 14 January 2016.

Automatically extract Android-friendly version names and codes from git tags

Using the plugins DSL:

plugins {
  id "com.gladed.androidgitversion" version "0.2.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:0.2.5"
  }
}

apply plugin: "com.gladed.androidgitversion"

Using the plugins DSL:

plugins {
  id("com.gladed.androidgitversion") version "0.2.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:0.2.5")
  }
}

apply(plugin = "com.gladed.androidgitversion")

Learn how to apply plugins to subprojects