Fixing version from commandline
This commit is contained in:
parent
5b8b69e7ef
commit
fabb77b0f0
3 changed files with 4 additions and 4 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -9,7 +9,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
gradleParams = "--info -Pversion=1.0.${BUILD_NUMBER}" // --no-daemon
|
gradleParams = "--info -PreleaseVersion=1.0.${BUILD_NUMBER}" // --no-daemon
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'se.koc'
|
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
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
compileJava.options.encoding = 'UTF-8'
|
compileJava.options.encoding = 'UTF-8'
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ publishing {
|
||||||
|
|
||||||
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
|
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
|
||||||
credentials {
|
credentials {
|
||||||
username project.property("mavenCentralUsername") as String
|
username mavenCentralUsername
|
||||||
password project.property("mavenCentralPassword") as String
|
password mavenCentralPassword
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue