Closed driftertest closed 3 years ago
Hi,
Yes. I looks you are right. The plugin did not remember it had previously increased the version when using the groupVersionIncrements = false
in combination with noAutoBumb = true
option.
I have fixed this in version 0.4.1 of the plugin.
Thx, i tested new version and saw that it fixed. But i have new bug :)
[root@cb14cf6cf36a app]# ./gradlew printversion
> Configure project :
Ignored pre-release with lower version than the current version: 0.0.5-SNAPSHOT+sha.6a9848f < 0.0.5+003.sha.6a9848f
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/main/java' of the main source-set
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/test/java' of the test source-set
> Task :printVersion
--------------------
Version: 0.0.5-SNAPSHOT+003.sha.6a9848f
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
[root@cb14cf6cf36a app]# git tag
v0.0.1-SNAPSHOT
v0.0.2
v0.0.2-SNAPSHOT
v0.0.3
v0.0.4
v0.0.5-SNAPSHOT
[root@cb14cf6cf36a app]# git log -n 2
commit 6a9848f62ac15b653e2a5bc2bb7383f65fb94711
Merge: 38ddd98 6073b2e
Author:
Date: Thu Oct 14 09:16:54 2021 +0000
Merge branch 'test' into 'dev'
fix: update semver plugin
See merge request !19
commit 6073b2e54a6d011b858c7b3ba2cfe664891f
Author:
Date: Thu Oct 14 09:13:40 2021 +0000
fix: update semver plugin
[root@cb14cf6cf36a app]# ./gradlew releaseVersion --preRelease=- --message 'Release tag'
> Configure project :
Ignored pre-release with lower version than the current version: 0.0.5-SNAPSHOT+sha.6a9848f < 0.0.5+003.sha.6a9848f
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/main/java' of the main source-set
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/test/java' of the test source-set
> Task :releaseVersion
Ignored pre-release with lower version than the current version: 0.0.5-SNAPSHOT+sha.6a9848f < 0.0.5+003.sha.6a9848f
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
[root@cb14cf6cf36a app]# ./gradlew printversion
> Configure project :
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/main/java' of the main source-set
'lombok.addLombokGeneratedAnnotation = true' is not configured for '/app/src/test/java' of the test source-set
> Task :printVersion
--------------------
Version: 0.0.6+sha.e0018df
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
[root@cb14cf6cf36a app]# git log -n 2
commit 872c9ddcd2276babd83bfa6b4da2737d69525866
Author: root <root@0773b2620c63>
Date: Thu Oct 14 12:34:38 2021 +0300
release: v0.0.6
Release tag
commit 6a9848f62ac15b653e2a5bc2bb7383f65fb94711
Merge: 38ddd98 6073b2e
Author:
Date: Thu Oct 14 09:16:54 2021 +0000
Merge branch 'test' into 'dev'
fix: update semver plugin
See merge request !19
I expect 0.0.5+sha.e0018df, but saw 0.0.6+sha.e0018df
Hi, I'm not completely sure about your git commit tree. I have made adjustments to how semantic versions is compared to each other as I suspect that caused the issue.
(Fix in version 0.4.2)
thx, i wiil try.
Hi, I have some questions about the noAutoBumb section. When I create commits that don't look like "conventional commits" (like "test", "observation", etc.), I expect the version to stay the same. But for some reason the "-SNAPSHOT" is lost. Example:
After second commit i expect 0.0.11-SNAPSHOT+014.sha.e6a8f6d
gradlew config: