Skip to content

Commit 77c11c7

Browse files
committed
adapted mavenCentralPublish.gradle to use semantic version plugin
1 parent 7f3a4c1 commit 77c11c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gradle/scripts/mavenCentralPublish.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
1010
}
1111

1212
if (project.hasProperty('user') && project.hasProperty('password')) {
13+
14+
// snapshot version differs from normal version
15+
def version = project.hasProperty('snapshot') ? "${semver.major}.${semver.minor}-SNAPSHOT" : this.version
16+
1317
signing {
1418
required { !version.endsWith('SNAPSHOT') }
1519
if (required)

0 commit comments

Comments
 (0)