Search Gradle plugins

eu.davidea.grabver

An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.

https://github.com/davideas/GrabVer

Sources: https://github.com/davideas/GrabVer

Version 2.0.3 (latest)

Created 01 August 2024.

An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.

Add this plugin to your build using the plugins DSL:

plugins {
  id("eu.davidea.grabver") version "2.0.3"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("eu.davidea.grabver:eu.davidea.grabver.gradle.plugin:2.0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("eu.davidea.grabver")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("eu.davidea.grabver:eu.davidea.grabver.gradle.plugin:2.0.3")
      }
    }
    
    apply(plugin = "eu.davidea.grabver")
  • Applying plugins to all subprojects .