Fixing version from commandline

This commit is contained in:
Ziver Koc 2024-09-17 23:11:32 +02:00
parent 5b8b69e7ef
commit fabb77b0f0
3 changed files with 4 additions and 4 deletions

2
Jenkinsfile vendored
View file

@ -9,7 +9,7 @@ pipeline {
}
environment {
gradleParams = "--info -Pversion=1.0.${BUILD_NUMBER}" // --no-daemon
gradleParams = "--info -PreleaseVersion=1.0.${BUILD_NUMBER}" // --no-daemon
}
stages {

View file

@ -42,7 +42,7 @@ dependencies {
}
group = 'se.koc'
version = project.hasProperty('version') ? project.property('version') : '1.0.0-SNAPSHOT'
version = project.hasProperty('releaseVersion') ? releaseVersion : '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'

View file

@ -13,8 +13,8 @@ publishing {
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
credentials {
username project.property("mavenCentralUsername") as String
password project.property("mavenCentralPassword") as String
username mavenCentralUsername
password mavenCentralPassword
}
}
}