Skip to content

Commit 15d6156

Browse files
committed
Add "-SNAPSHOT" to rc branch
Only versions ending with "-SNAPSHOT" are uploaded to sonatype's snapshot repository.
1 parent 8a3e605 commit 15d6156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def getSnapshotVersion() {
342342
}
343343
if (grgit.branch.current().name.contains('-rc')) {
344344
logger.lifecycle('Release candidate branch found')
345-
return "${grgit.branch.current().name}"
345+
return "${grgit.branch.current().name}-SNAPSHOT"
346346
}
347347
logger.lifecycle('Feature branch found')
348348
return "feature-${grgit.branch.current().name}-SNAPSHOT"

0 commit comments

Comments
 (0)