Search Gradle plugins

com.wopata.gradle.AndroidBuildNumberPlugin

Adds possibility to add build number to a provided version name in the form of "v1.0(buildNumber)" and build version code

https://github.com/wopata/AndroidBuildNumberPlugin/

Version 1.0.0 (latest)

Created 09 May 2018.

Adds possibility to add build number to a provided version name in the form of "v1.0(buildNumber)" and build version code

Using the plugins DSL:

plugins {
  id "com.wopata.gradle.AndroidBuildNumberPlugin" version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.wopata.gradle:android-buildnumber-plugin:1.0.0"
  }
}

apply plugin: "com.wopata.gradle.AndroidBuildNumberPlugin"

Using the plugins DSL:

plugins {
  id("com.wopata.gradle.AndroidBuildNumberPlugin") version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.wopata.gradle:android-buildnumber-plugin:1.0.0")
  }
}

apply(plugin = "com.wopata.gradle.AndroidBuildNumberPlugin")

Learn how to apply plugins to subprojects