From 23c95ca652b7e6e5e6d080c4177a7d96649ff195 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Tue, 17 Sep 2024 23:22:48 +0200 Subject: [PATCH] Fixing version from commandline --- Jenkinsfile | 2 +- build_publish.gradle | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d43183b..1d26b51 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} -PdoRelease -PcustomProperties=${GRADLE_PROPERTIES} publish' + sh './gradlew ${gradleParams} -Prelease -PcustomProperties=${GRADLE_PROPERTIES} publish' } } } diff --git a/build_publish.gradle b/build_publish.gradle index 6b14a69..5dccd17 100644 --- a/build_publish.gradle +++ b/build_publish.gradle @@ -7,9 +7,10 @@ apply plugin: 'signing' publishing { repositories { maven { - def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/' - def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' - url = project.hasProperty('doRelease') ? releaseRepoUrl : snapshotsRepoUrl + //def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/' + //def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' + //url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl + url = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) { credentials {