Fixing version from commandline

This commit is contained in:
Ziver Koc 2024-09-17 23:22:48 +02:00
parent 9ed13e1888
commit 23c95ca652
2 changed files with 5 additions and 4 deletions

2
Jenkinsfile vendored
View file

@ -37,7 +37,7 @@ pipeline {
configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) { configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) {
sh './gradlew ${gradleParams} publishToMavenLocal' sh './gradlew ${gradleParams} publishToMavenLocal'
sh './gradlew ${gradleParams} -PdoRelease -PcustomProperties=${GRADLE_PROPERTIES} publish' sh './gradlew ${gradleParams} -Prelease -PcustomProperties=${GRADLE_PROPERTIES} publish'
} }
} }
} }

View file

@ -7,9 +7,10 @@ apply plugin: 'signing'
publishing { publishing {
repositories { repositories {
maven { maven {
def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/' //def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/'
def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/' //def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/'
url = project.hasProperty('doRelease') ? releaseRepoUrl : snapshotsRepoUrl //url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl
url = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/'
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) { if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
credentials { credentials {