com.peterabeles.gversion
Owner: Peter Abeles
Auto-generates version class file using Git and Gradle
https://github.com/lessthanoptimal/gversion-plugin
Sources: https://github.com/lessthanoptimal/gversion-plugin
Version 1.10.3 (latest)
Created 11 May 2024.
Auto-generates project version files from Git and Gradle at compile time
Add this plugin to your build using the plugins DSL:
plugins {
id("com.peterabeles.gversion") version "1.10.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("com.peterabeles.gversion:com.peterabeles.gversion.gradle.plugin:1.10.3") }
It can then be applied in the precompiled script plugin:plugins { id("com.peterabeles.gversion") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("com.peterabeles.gversion:com.peterabeles.gversion.gradle.plugin:1.10.3") } } apply(plugin = "com.peterabeles.gversion")
- Applying plugins to all subprojects .