io.github.dwarfley.versioncompanion
Owner: Niklas Johansson
Deprecated and replaced by "io.github.dwarfley.version-companion". Use the new plugin ID in your project.
https://github.com/Dwarfley/GradleVersionCompanion
Sources: https://github.com/Dwarfley/GradleVersionCompanion
Version 0.1.2 (latest)
Created 26 December 2023.
The version companion plugin automatically detects the current version of the project based on git tags. The plugin also provides helper tasks for printing the detected version and a list of all detected versions.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.dwarfley.versioncompanion") version "0.1.2"
}
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("io.github.dwarfley.versioncompanion:io.github.dwarfley.versioncompanion.gradle.plugin:0.1.2") }
It can then be applied in the precompiled script plugin:plugins { id("io.github.dwarfley.versioncompanion") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.dwarfley.versioncompanion:io.github.dwarfley.versioncompanion.gradle.plugin:0.1.2") } } apply(plugin = "io.github.dwarfley.versioncompanion")
- Applying plugins to all subprojects .