Signed-off-by: Olivier Lamy <olamy@apache.org>pull/121/head
strategy: | strategy: | ||||
matrix: | matrix: | ||||
os: [ubuntu-latest] | os: [ubuntu-latest] | ||||
java: [8, 11] | |||||
java: [11, 17] | |||||
fail-fast: false | fail-fast: false | ||||
runs-on: ${{ matrix.os }} | runs-on: ${{ matrix.os }} |
* Only the war and zip artifacts are archived in the jenkins build archive. | * Only the war and zip artifacts are archived in the jenkins build archive. | ||||
*/ | */ | ||||
LABEL = 'ubuntu && !H23' | 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' | buildMvn = 'maven_3.8.5' | ||||
//localRepository = ".repository" | //localRepository = ".repository" | ||||
//localRepository = "../.maven_repositories/${env.EXECUTOR_NUMBER}" | //localRepository = "../.maven_repositories/${env.EXECUTOR_NUMBER}" | ||||
} | } | ||||
} | } | ||||
stage('JDK11') { | |||||
stage('JDK17') { | |||||
environment { | 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 { | steps { | ||||
ws("${env.JOB_NAME}-JDK11") { | ws("${env.JOB_NAME}-JDK11") { | ||||
checkout scm | checkout scm | ||||
timeout(120) { | timeout(120) { | ||||
withMaven(maven: buildMvn, jdk: buildJdk11, | |||||
withMaven(maven: buildMvn, jdk: buildJdk17, | |||||
mavenLocalRepo: ".repository", | mavenLocalRepo: ".repository", | ||||
publisherStrategy: 'EXPLICIT', | publisherStrategy: 'EXPLICIT', | ||||
mavenOpts: mavenOpts, | mavenOpts: mavenOpts, | ||||
} | } | ||||
post { | post { | ||||
always { | 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 { | success { | ||||
cleanWs() | cleanWs() |
<groupId>commons-codec</groupId> | <groupId>commons-codec</groupId> | ||||
<artifactId>commons-codec</artifactId> | <artifactId>commons-codec</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
<build> | <build> | ||||
</pluginManagement> | </pluginManagement> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<artifactId>commons-io</artifactId> | <artifactId>commons-io</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
<!-- test dependencies --> | <!-- test dependencies --> | ||||
<dependency> | <dependency> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<!-- | |||||
The jaxb dependency is needed by the enunciate plugin starting with JDK9. | |||||
Adding to the plugin dependency is not sufficient, so I have to add it as project dependency. | |||||
Using provided scope to avoid adding it to packaging. | |||||
--> | |||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<scope>runtime</scope> | <scope>runtime</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<!-- Test scope --> | <!-- Test scope --> | ||||
<dependency> | <dependency> | ||||
</pluginManagement> | </pluginManagement> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<artifactId>hsqldb</artifactId> | <artifactId>hsqldb</artifactId> | ||||
<scope>test</scope> | <scope>test</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
<build> | <build> | ||||
<plugins> | <plugins> | ||||
</pluginManagement> | </pluginManagement> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
</properties> | </properties> | ||||
<dependencies> | <dependencies> | ||||
<dependency> | |||||
<groupId>javax.xml.bind</groupId> | |||||
<artifactId>jaxb-api</artifactId> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>org.apache.archiva</groupId> | <groupId>org.apache.archiva</groupId> | ||||
<artifactId>archiva-storage-api</artifactId> | <artifactId>archiva-storage-api</artifactId> |
<artifactId>log4j-jcl</artifactId> | <artifactId>log4j-jcl</artifactId> | ||||
<scope>test</scope> | <scope>test</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<groupId>jakarta.annotation</groupId> | <groupId>jakarta.annotation</groupId> | ||||
<artifactId>jakarta.annotation-api</artifactId> | <artifactId>jakarta.annotation-api</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>org.springframework</groupId> | <groupId>org.springframework</groupId> | ||||
<artifactId>spring-context</artifactId> | <artifactId>spring-context</artifactId> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<!-- | |||||
The jaxb dependency is needed by the enunciate plugin starting with JDK9. | |||||
Adding to the plugin dependency is not sufficient, so I have to add it as project dependency. | |||||
Using provided scope to avoid adding it to packaging. | |||||
--> | |||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<artifactId>archiva-repository-admin-api</artifactId> | <artifactId>archiva-repository-admin-api</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | <dependency> | ||||
<groupId>jakarta.annotation</groupId> | <groupId>jakarta.annotation</groupId> | ||||
<artifactId>jakarta.annotation-api</artifactId> | <artifactId>jakarta.annotation-api</artifactId> | ||||
</pluginManagement> | </pluginManagement> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<groupId>jakarta.inject</groupId> | <groupId>jakarta.inject</groupId> | ||||
<artifactId>jakarta.inject-api</artifactId> | <artifactId>jakarta.inject-api</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-core</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-jaxrs2</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-annotations</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-core</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-jaxrs2</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>io.swagger.core.v3</groupId> | |||||
<artifactId>swagger-annotations</artifactId> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
<build> | <build> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<!-- | |||||
The jaxb dependency is needed by the enunciate plugin starting with JDK9. | |||||
Adding to the plugin dependency is not sufficient, so I have to add it as project dependency. | |||||
Using provided scope to avoid adding it to packaging. | |||||
--> | |||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<artifactId>jaxb-runtime</artifactId> | <artifactId>jaxb-runtime</artifactId> | ||||
<scope>test</scope> | <scope>test</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<artifactId>jackson-jaxrs-json-provider</artifactId> | <artifactId>jackson-jaxrs-json-provider</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>jakarta.mail</groupId> | <groupId>jakarta.mail</groupId> | ||||
<scope>provided</scope> | <scope>provided</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | <dependency> | ||||
<groupId>jakarta.annotation</groupId> | <groupId>jakarta.annotation</groupId> | ||||
<artifactId>jakarta.annotation-api</artifactId> | <artifactId>jakarta.annotation-api</artifactId> | ||||
</plugin> | </plugin> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<!-- | |||||
The jaxb dependency is needed by the enunciate plugin starting with JDK9. | |||||
Adding to the plugin dependency is not sufficient, so I have to add it as project dependency. | |||||
Using provided scope to avoid adding it to packaging. | |||||
--> | |||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
<dependency> | <dependency> | ||||
<groupId>jakarta.annotation</groupId> | <groupId>jakarta.annotation</groupId> | ||||
<artifactId>jakarta.annotation-api</artifactId> | <artifactId>jakarta.annotation-api</artifactId> | ||||
<scope>test</scope> | |||||
</dependency> | </dependency> | ||||
<dependency> | <dependency> | ||||
<groupId>jakarta.xml.bind</groupId> | <groupId>jakarta.xml.bind</groupId> | ||||
<artifactId>jakarta.xml.bind-api</artifactId> | <artifactId>jakarta.xml.bind-api</artifactId> | ||||
<scope>test</scope> | |||||
</dependency> | </dependency> | ||||
<dependency> | <dependency> | ||||
<groupId>org.glassfish.jaxb</groupId> | <groupId>org.glassfish.jaxb</groupId> |
</properties> | </properties> | ||||
<dependencies> | <dependencies> | ||||
<dependency> | |||||
<groupId>javax.xml.bind</groupId> | |||||
<artifactId>jaxb-api</artifactId> | |||||
</dependency> | |||||
<dependency> | <dependency> | ||||
<groupId>org.apache.archiva</groupId> | <groupId>org.apache.archiva</groupId> | ||||
<artifactId>archiva-checksum</artifactId> | <artifactId>archiva-checksum</artifactId> |
<scope>test</scope> | <scope>test</scope> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
<build> | <build> | ||||
<plugins> | <plugins> | ||||
</plugin> | </plugin> | ||||
</plugins> | </plugins> | ||||
</build> | </build> | ||||
<profiles> | |||||
<profile> | |||||
<id>jdk9+</id> | |||||
<activation> | |||||
<jdk>[1.9,)</jdk> | |||||
</activation> | |||||
<dependencies> | |||||
<!-- Needed for JDK >= 9 --> | |||||
<dependency> | |||||
<groupId>jakarta.annotation</groupId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>jakarta.xml.bind</groupId> | |||||
<artifactId>jakarta.xml.bind-api</artifactId> | |||||
<scope>test</scope> | |||||
</dependency> | |||||
</dependencies> | |||||
</profile> | |||||
</profiles> | |||||
</project> | </project> |
</exclusions> | </exclusions> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>javax.xml.bind</groupId> | |||||
<artifactId>jaxb-api</artifactId> | |||||
<version>2.3.1</version> | |||||
</dependency> | |||||
<!-- START SNIPPET: rest-dependencies --> | <!-- START SNIPPET: rest-dependencies --> | ||||
<exclusions> | <exclusions> | ||||
<exclusion> | <exclusion> | ||||
<groupId>jakarta.annotation</groupId> | <groupId>jakarta.annotation</groupId> | ||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
<artifactId>jakarta.annotation-api</artifactId> | |||||
</exclusion> | </exclusion> | ||||
</exclusions> | </exclusions> | ||||
</dependency> | </dependency> |