From: Olivier Lamy Date: Sat, 6 Aug 2022 01:30:06 +0000 (+1000) Subject: [MRM-2031] Switch to jdk 11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4e15d4fd6f458ac29b4dc928b538e2d23e2885f1;p=archiva.git [MRM-2031] Switch to jdk 11 Signed-off-by: Olivier Lamy --- diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e44e7f976..7fbfa26a6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - java: [8, 11] + java: [11, 17] fail-fast: false runs-on: ${{ matrix.os }} diff --git a/Jenkinsfile b/Jenkinsfile index f807c0014..34ce16e2f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,10 +28,8 @@ * Only the war and zip artifacts are archived in the jenkins build archive. */ LABEL = 'ubuntu && !H23' -buildJdk = 'jdk_1.8_latest' -buildJdk9 = 'jdk_1.9_latest' -buildJdk10 = 'jdk_10_latest' -buildJdk11 = 'jdk_11_latest' +buildJdk = 'jdk_11_latest' +buildJdk17 = 'jdk_17_latest' buildMvn = 'maven_3.8.5' //localRepository = ".repository" //localRepository = "../.maven_repositories/${env.EXECUTOR_NUMBER}" @@ -131,15 +129,15 @@ pipeline { } } - stage('JDK11') { + stage('JDK17') { environment { - ARCHIVA_USER_CONFIG_FILE = '/tmp/archiva-master-jdk-11-${env.JOB_NAME}.xml' + ARCHIVA_USER_CONFIG_FILE = '/tmp/archiva-master-jdk-17-${env.JOB_NAME}.xml' } steps { ws("${env.JOB_NAME}-JDK11") { checkout scm timeout(120) { - withMaven(maven: buildMvn, jdk: buildJdk11, + withMaven(maven: buildMvn, jdk: buildJdk17, mavenLocalRepo: ".repository", publisherStrategy: 'EXPLICIT', mavenOpts: mavenOpts, @@ -155,7 +153,7 @@ pipeline { } post { always { - sh "rm -f /tmp/archiva-master-jdk-11-${env.JOB_NAME}.xml" + sh "rm -f /tmp/archiva-master-jdk-17-${env.JOB_NAME}.xml" } success { cleanWs() diff --git a/archiva-modules/archiva-base/archiva-checksum/pom.xml b/archiva-modules/archiva-base/archiva-checksum/pom.xml index bd8c9c89d..516ea3a39 100644 --- a/archiva-modules/archiva-base/archiva-checksum/pom.xml +++ b/archiva-modules/archiva-base/archiva-checksum/pom.xml @@ -58,7 +58,17 @@ commons-codec commons-codec + + jakarta.annotation + jakarta.annotation-api + test + + + jakarta.xml.bind + jakarta.xml.bind-api + test + @@ -77,26 +87,4 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml index 310ff577f..2c734618a 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml @@ -113,6 +113,10 @@ commons-io + + jakarta.xml.bind + jakarta.xml.bind-api + @@ -329,23 +333,4 @@ - - - - jdk9+ - - [1.9,) - - - - jakarta.xml.bind - jakarta.xml.bind-api - - - - diff --git a/archiva-modules/archiva-base/archiva-policies/pom.xml b/archiva-modules/archiva-base/archiva-policies/pom.xml index 9dc186ec9..41e004056 100644 --- a/archiva-modules/archiva-base/archiva-policies/pom.xml +++ b/archiva-modules/archiva-base/archiva-policies/pom.xml @@ -75,6 +75,19 @@ runtime + + + jakarta.annotation + jakarta.annotation-api + test + + + + jakarta.xml.bind + jakarta.xml.bind-api + test + + @@ -137,27 +150,4 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - - diff --git a/archiva-modules/archiva-base/archiva-proxy/pom.xml b/archiva-modules/archiva-base/archiva-proxy/pom.xml index 840b829f1..c7b6d7344 100644 --- a/archiva-modules/archiva-base/archiva-proxy/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy/pom.xml @@ -133,8 +133,11 @@ hsqldb test - - + + jakarta.xml.bind + jakarta.xml.bind-api + test + @@ -171,20 +174,4 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml index d378abcad..4bf7b65d2 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml @@ -33,6 +33,10 @@ + + javax.xml.bind + jaxb-api + org.apache.archiva archiva-storage-api diff --git a/archiva-modules/archiva-base/archiva-transaction/pom.xml b/archiva-modules/archiva-base/archiva-transaction/pom.xml index 69f933c31..75deaffdd 100644 --- a/archiva-modules/archiva-base/archiva-transaction/pom.xml +++ b/archiva-modules/archiva-base/archiva-transaction/pom.xml @@ -56,29 +56,17 @@ log4j-jcl test + + jakarta.annotation + jakarta.annotation-api + test + + + jakarta.xml.bind + jakarta.xml.bind-api + test + - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml index 841ef71b5..cab879352 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml @@ -123,7 +123,10 @@ jakarta.annotation jakarta.annotation-api - + + jakarta.xml.bind + jakarta.xml.bind-api + org.springframework spring-context @@ -253,24 +256,4 @@ - - - - jdk9+ - - [1.9,) - - - - jakarta.xml.bind - jakarta.xml.bind-api - - - - - diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml b/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml index 71d3efed2..7be138c84 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml @@ -113,8 +113,6 @@ archiva-repository-admin-api - - jakarta.annotation jakarta.annotation-api @@ -367,26 +365,4 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml index fbc01e61f..58f940392 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml @@ -104,24 +104,24 @@ jakarta.inject jakarta.inject-api + + jakarta.xml.bind + jakarta.xml.bind-api + + + io.swagger.core.v3 + swagger-core + + + io.swagger.core.v3 + swagger-jaxrs2 + + + io.swagger.core.v3 + swagger-annotations + - - io.swagger.core.v3 - swagger-core - - - io.swagger.core.v3 - swagger-jaxrs2 - - - io.swagger.core.v3 - swagger-annotations - - - jakarta.xml.bind - jakarta.xml.bind-api - @@ -140,25 +140,4 @@ - - - - jdk9+ - - [1.9,) - - - - jakarta.xml.bind - jakarta.xml.bind-api - - - - - - diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml index 2fd158e24..a664df43c 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml @@ -501,6 +501,17 @@ jaxb-runtime test + + jakarta.annotation + jakarta.annotation-api + test + + + + jakarta.xml.bind + jakarta.xml.bind-api + test + @@ -564,27 +575,4 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - - diff --git a/archiva-modules/archiva-web/archiva-web-common/pom.xml b/archiva-modules/archiva-web/archiva-web-common/pom.xml index e44ea64d8..f6a47c80f 100644 --- a/archiva-modules/archiva-web/archiva-web-common/pom.xml +++ b/archiva-modules/archiva-web/archiva-web-common/pom.xml @@ -377,7 +377,10 @@ jackson-jaxrs-json-provider - + + jakarta.xml.bind + jakarta.xml.bind-api + jakarta.mail @@ -385,7 +388,6 @@ provided - jakarta.annotation jakarta.annotation-api @@ -596,26 +598,4 @@ - - - - - jdk9+ - - [1.9,) - - - - jakarta.xml.bind - jakarta.xml.bind-api - - - - - - diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 8efc940c7..0f3ada4a4 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -391,12 +391,10 @@ jakarta.annotation jakarta.annotation-api - test jakarta.xml.bind jakarta.xml.bind-api - test org.glassfish.jaxb diff --git a/archiva-modules/metadata/metadata-model/pom.xml b/archiva-modules/metadata/metadata-model/pom.xml index 2363a1915..275d642a7 100644 --- a/archiva-modules/metadata/metadata-model/pom.xml +++ b/archiva-modules/metadata/metadata-model/pom.xml @@ -32,6 +32,10 @@ + + javax.xml.bind + jaxb-api + org.apache.archiva archiva-checksum diff --git a/archiva-modules/plugins/problem-reports/pom.xml b/archiva-modules/plugins/problem-reports/pom.xml index b94505b9f..7f0cb865c 100644 --- a/archiva-modules/plugins/problem-reports/pom.xml +++ b/archiva-modules/plugins/problem-reports/pom.xml @@ -126,6 +126,11 @@ test + + jakarta.xml.bind + jakarta.xml.bind-api + test + @@ -158,27 +163,5 @@ - - - jdk9+ - - [1.9,) - - - - - jakarta.annotation - jakarta.annotation-api - test - - - - jakarta.xml.bind - jakarta.xml.bind-api - test - - - - diff --git a/pom.xml b/pom.xml index b7279d369..6496e406b 100644 --- a/pom.xml +++ b/pom.xml @@ -861,7 +861,11 @@ - + + javax.xml.bind + jaxb-api + 2.3.1 + @@ -1224,7 +1228,7 @@ jakarta.annotation - jakarta.annotation-api + jakarta.annotation-api