jmongard / Git.SemVersioning.Gradle

Gradle plugin for automatically versioning a project using semantic versioning and conventional commits with change log support based on git commit messages.
https://plugins.gradle.org/plugin/com.github.jmongard.git-semver-plugin
Apache License 2.0
38 stars 4 forks source link

semver {} config block does not work #57

Closed javaboy79 closed 3 months ago

javaboy79 commented 4 months ago

since 0.12.0 the semver {} config block does not seem to work. I tested with the following and the settings had no effect. 0.11.0 works.

semver {
    defaultPreRelease = "PRE"
    noDirtyCheck = true
}

version = semver.version
jmongard commented 4 months ago

Yes, you are right. Making the plugin compatible with configuration cache is hard. I guess I need to figure out how to handle the settings correctly.

jmongard commented 4 months ago

With the introduction of the configuration cache the semver properties were read before you had the chance to set their value. I have fix this in version 0.12.6