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

Created 13 January 2016.

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

Using the plugins DSL:

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

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

apply plugin: "com.gladed.androidgitversion"

Using the plugins DSL:

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

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")
  }
}

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

Learn how to apply plugins to subprojects