Search Gradle plugins

eu.aylett.plugins.version

Sets the project version from the state of the git repository it's in.

https://gradle-plugins.aylett.eu/

Sources: https://github.com/andrewaylett/gradle-plugins

Version 0.4.0 (latest)

Created 22 September 2024.

Sets the project version from the state of the git repository it's in.

Add this plugin to your build using the plugins DSL:

plugins {
  id("eu.aylett.plugins.version") version "0.4.0"
}

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.aylett.plugins.version:eu.aylett.plugins.version.gradle.plugin:0.4.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("eu.aylett.plugins.version")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("eu.aylett.plugins.version:eu.aylett.plugins.version.gradle.plugin:0.4.0")
      }
    }
    
    apply(plugin = "eu.aylett.plugins.version")
  • Applying plugins to all subprojects .