vivin / gradle-semantic-build-versioning

Gradle plugin to generate version-numbers and tags using semantic versioning
MIT License
85 stars 32 forks source link

build exception with a malformed tag name #115

Open radai-rosenblatt opened 3 years ago

radai-rosenblatt commented 3 years ago

my project had a tag (v0.2.9) pushed by accident. also had a "proper" 0.2.9 tag applied to the same commit.

somehow this cause the plugin to fail:

java.lang.IllegalStateException: No match found at net.vivin.gradle.versioning.VersionComparator.compare(VersionComparator.java:19) at net.vivin.gradle.versioning.VersionComparator.compare(VersionComparator.java:7) at net.vivin.gradle.versioning.VersionUtils.getLatestTagOnReference(VersionUtils.groovy:220) at net.vivin.gradle.versioning.VersionUtils.prefillState(VersionUtils.groovy:296) at net.vivin.gradle.versioning.VersionUtils.getAutobumpMessages(VersionUtils.groovy:194) at net.vivin.gradle.versioning.SemanticBuildVersion.setVersionComponentUsingAutobumpConfiguration(SemanticBuildVersion.groovy:120) at net.vivin.gradle.versioning.SemanticBuildVersion.toString(SemanticBuildVersion.groovy:156) at net.vivin.gradle.versioning.SemanticBuildVersioningPlugin$_apply_closure1.doCall(SemanticBuildVersioningPlugin.groovy:40) at org.gradle.util.ClosureBackedAction.execute(ClosureBackedAction.java:71) at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:154)