axion-release-plugin
axion-release-plugin copied to clipboard
Current Version Always SNAPSHOT
trafficstars
I'm not sure what's going on but I cannot get the current version to display anything but a SNAPSHOT. Even if I tag the current commit and then run the currentVersion command immediately after. The current version is then incremented to the next SNAPSHOT. I am using the latest plugin version (1.13.3). This is my current config...
subprojects {
apply(plugin = "pl.allegro.tech.build.axion-release")
scmVersion {
ignoreUncommittedChanges = true
useHighestVersion = true
tag(closureOf<TagNameSerializationConfig> {
prefix = "${project.name}-"
})
repository(closureOf<RepositoryConfig> {
type = "git"
directory = rootProject.projectDir
remote = "origin"
})
}
version = scmVersion.version
}