diff --git a/Jenkinsfile b/Jenkinsfile index 1d26b51..80a834d 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) { sh './gradlew ${gradleParams} publishToMavenLocal' - sh './gradlew ${gradleParams} -Prelease -PcustomProperties=${GRADLE_PROPERTIES} publish' + sh './gradlew ${gradleParams} -Prelease=true -PcustomProperties=${GRADLE_PROPERTIES} publish' } } } diff --git a/build_publish.gradle b/build_publish.gradle index 149877d..f796f51 100644 --- a/build_publish.gradle +++ b/build_publish.gradle @@ -8,8 +8,8 @@ publishing { repositories { maven { def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/' - def releasesRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' - url = project.hasProperty('release') ? releasesRepoUrl : snapshotsRepoUrl + def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' + url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) { credentials {