From 5dd876229fb116086dd1b27c6e06d81c6e36e018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skaar=2C=20Bj=C3=B8rn-Andre?= Date: Wed, 24 Jan 2024 15:57:58 +0100 Subject: [PATCH 1/2] Fix deployment --- Jenkinsfile | 12 +++++++++--- pom.xml | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5853de20..fa2ba366 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { } tools { - jdk 'Oracle Java 8' + jdk 'OpenJDK Java 17' maven 'Maven 3.5.2' git 'Default' } @@ -22,11 +22,17 @@ pipeline { defaultValue: false) } + parameters { + booleanParam(name: "RELEASE", + description: "Build a release from current commit.", + defaultValue: false) + } + stages { stage("Build & deploy SNAPSHOT to Nexus") { steps { - sh "mvn -B clean deploy -Pdocumentation" + sh "mvn -B clean deploy -Pdocumentation -pl :klass-api -am" } } @@ -39,7 +45,7 @@ pipeline { sshagent(['605c16cc-7c0c-4d39-8c8a-6d190e2f98b1']) { sh('git push --follow-tags') } - sh "mvn -B release:perform" + sh "mvn -B release:perform -pl :klass-api -am" } } diff --git a/pom.xml b/pom.xml index 0bf2d159..fc32ac04 100644 --- a/pom.xml +++ b/pom.xml @@ -106,6 +106,11 @@ -Pdocumentation -Dmaven.javadoc.skip=true + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.1 + From 6455f1d65bdf39b249da8d9e5af132cb09a0cb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skaar=2C=20Bj=C3=B8rn-Andre?= Date: Wed, 24 Jan 2024 16:27:14 +0100 Subject: [PATCH 2/2] Patch snakeyaml --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index fc32ac04..077e59d8 100644 --- a/pom.xml +++ b/pom.xml @@ -51,6 +51,7 @@ 2.15.1 2.1.6 2.0.8.RELEASE + 1.31