Search Gradle plugins

de.nanogiants.android-versioning

Gradle plugin to automatically generate Android versionName and versionCode using Git.

https://github.com/nanogiants/android-versioning/

Version 2.4.0 (latest)

Created 10 July 2020.

Gradle plugin to automatically generate Android versionName and versionCode using Git.

Using the plugins DSL:

plugins {
  id "de.nanogiants.android-versioning" version "2.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "de.nanogiants:android-versioning:2.4.0"
  }
}

apply plugin: "de.nanogiants.android-versioning"

Using the plugins DSL:

plugins {
  id("de.nanogiants.android-versioning") version "2.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("de.nanogiants:android-versioning:2.4.0")
  }
}

apply(plugin = "de.nanogiants.android-versioning")

Learn how to apply plugins to subprojects