Keeps the root version.txt file aligned with the current Gradle project version.
- Runs after evaluation and writes the root-level version.txt file if it is missing.
- Replaces the file contents when the first line does not match project.version.
Usage
build.gradle
Groovy DSL
plugins {
id 'com.helixframework.build-version-tag'
}
build.gradle.kts
Kotlin DSL
plugins {
id("com.helixframework.build-version-tag")
}
Configuration
No Helix-specific extension is added by this plugin.
Default Behavior
- No Helix-specific extension is added.
- The plugin works from the root project directory and manages only the version.txt file.