diff --git a/.jenkins/Jenkinsfile.snapshot b/.jenkins/Jenkinsfile.snapshot index eb5ef48..e2919ac 100644 --- a/.jenkins/Jenkinsfile.snapshot +++ b/.jenkins/Jenkinsfile.snapshot @@ -29,14 +29,14 @@ pipeline { stage("Build") { steps { - sh "./gradlew build" + sh "./gradlew build -PreleaseType=port" } } stage("Publish to Maven") { steps { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "./gradlew publish" + sh "./gradlew publish -PreleaseType=port" } } } diff --git a/build.gradle b/build.gradle index a36cc84..faa174b 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'com.github.johnrengelman.shadow' version '8.1.1' apply false id "xyz.wagyourtail.unimined" version "1.2.4" apply false id "com.hypherionmc.modutils.modpublisher" version "2.1.+" - id "com.hypherionmc.modutils.orion" version "1.0.13" + id "com.hypherionmc.modutils.orion" version "1.0.14" id 'maven-publish' } @@ -15,7 +15,8 @@ orion.setup { dopplerToken = System.getenv("DOPPLER_KEY") versioning { - identifier("${release_type}") + var relType = project.properties["releaseType"] ?: "${release_type}" + identifier("${relType}") } }