diff --git a/Jenkinsfile b/Jenkinsfile index dceb9a68..28de67c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { } stages { - stage("test: baseline (jdk8)") { + stage("test: baseline (Java 17)") { agent { label 'data' } @@ -23,7 +23,7 @@ pipeline { steps { script { docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home') { + docker.image('openjdk:17').inside('-v $HOME:/tmp/jenkins-home') { sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list verify -Dsort -B' } } @@ -31,51 +31,6 @@ pipeline { } } - stage("Test other configurations") { - when { - branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") - } - parallel { - stage("test: baseline (jdk11)") { - agent { - label 'data' - } - options { timeout(time: 30, unit: 'MINUTES') } - environment { - ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') - } - steps { - script { - docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('adoptopenjdk/openjdk11:latest').inside('-v $HOME:/tmp/jenkins-home') { - sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list verify -Dsort -B' - } - } - } - } - } - - stage("test: baseline (jdk17)") { - agent { - label 'data' - } - options { timeout(time: 30, unit: 'MINUTES') } - environment { - ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') - } - steps { - script { - docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') { - sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list verify -Dsort -B' - } - } - } - } - } - } - } - stage('Build project and release to artifactory') { agent { label 'data' @@ -89,7 +44,7 @@ pipeline { steps { script { docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home') { + docker.image('openjdk:17').inside('-v $HOME:/tmp/jenkins-home') { sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory ' + '-Dartifactory.server=https://repo.spring.io ' + "-Dartifactory.username=${ARTIFACTORY_USR} " + diff --git a/parent/pom.xml b/parent/pom.xml index e26ccd92..cb06c4a2 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -92,9 +92,11 @@ UTF-8 ${basedir} - 1.8 + 17 ${project.artifactId} ${project.build.directory}/jacoco.exec + 11 + false 1.1.3 1.9.7 @@ -104,6 +106,7 @@ 19.0 1.3 2.13.1 + 2.3.1 0.8.7 2.10.13 1.4.0 @@ -129,10 +132,13 @@ 5.3.13 1.4.0 2.0.0.RELEASE + 4.0.1 1.16.2 1.5.2 1.1.0.Final 2.0.25 + + 4.20 1.3.2 @@ -208,43 +214,11 @@ - - - java11 - - - 2.2.11 - 1.1.1 - - - - - javax.xml.bind - jaxb-api - ${jaxb.version} - provided - - - - javax.activation - activation - ${java-activation.version} - provided - - - - javax.annotation - javax.annotation-api - ${javax-annotation-api} - provided - - - @@ -278,34 +252,6 @@ - - - - - sonarcube - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco} - - ${jacoco.destfile} - - - - jacoco-initialize - - prepare-agent - - - - - - - -