axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

Current Version Always SNAPSHOT

Open kkovach opened this issue 4 years ago • 1 comments
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
}

kkovach avatar Sep 22 '21 02:09 kkovach