You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/05/18 17:32:35 UTC
[archiva-redback-core] branch master updated: Build with JDK9 and
JDK10
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-core.git
The following commit(s) were added to refs/heads/master by this push:
new fd2d497 Build with JDK9 and JDK10
fd2d497 is described below
commit fd2d49761acdf35e54521118d5accac515943362
Author: Martin Stockhammer <ma...@ars.de>
AuthorDate: Fri May 18 19:32:06 2018 +0200
Build with JDK9 and JDK10
---
Jenkinsfile | 68 ++++++++++++++++------
pom.xml | 13 +++++
.../redback-rest/redback-rest-services/pom.xml | 13 +++++
3 files changed, 77 insertions(+), 17 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index ceec0c3..5a16a95 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -29,6 +29,8 @@
*/
LABEL = 'ubuntu'
buildJdk = 'JDK 1.8 (latest)'
+buildJdk9 = 'JDK 1.9 (latest)'
+buildJdk10 = 'JDK 10 (latest)'
buildMvn = 'Maven 3.5.2'
deploySettings = 'DefaultMavenSettingsProvider.1331204114925'
@@ -39,21 +41,6 @@ pipeline {
stages {
-
- stage('Checkout') {
- steps {
- script {
- echo "Info: Job-Name=${JOB_NAME}, Branch=${BRANCH_NAME}, Workspace=${PWD}"
- }
- checkout scm
- }
- post {
- failure {
- notifyBuild("Checkout failure")
- }
- }
- }
-
stage('BuildAndDeploy') {
steps {
timeout(120) {
@@ -92,14 +79,61 @@ pipeline {
}
}
}
+
+ stage('JDKs') {
+ parallel {
+ stage('JDK9') {
+ steps {
+
+ ws("${env.JOB_NAME}-JDK9") {
+ timeout(120) {
+ withMaven(maven: buildMvn, jdk: buildJdk9,
+ mavenSettingsConfig: deploySettings,
+ mavenLocalRepo: ".repository",
+ options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
+ findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
+ invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
+ junitPublisher(disabled: true, ignoreAttachments: false),
+ openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
+ )
+ {
+ sh "mvn clean install -B -U -e -fae -T2"
+ }
+ }
+ }
+ }
+ }
+ stage('JDK10') {
+ steps {
+
+ ws("${env.JOB_NAME}-JDK10") {
+ timeout(120) {
+ withMaven(maven: buildMvn, jdk: buildJdk10,
+ mavenSettingsConfig: deploySettings,
+ mavenLocalRepo: ".repository",
+ options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
+ findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
+ invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
+ junitPublisher(disabled: true, ignoreAttachments: false),
+ openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
+ )
+ {
+ sh "mvn clean install -B -U -e -fae -T2"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
post {
unstable {
notifyBuild("Unstable Build")
}
- always {
- cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
+ failure {
+ notifyBuild("Error in redback build")
}
success {
script {
diff --git a/pom.xml b/pom.xml
index bf99315..32b38ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -631,6 +631,19 @@
<artifactId>assertj-core</artifactId>
<version>1.7.1</version>
</dependency>
+
+ <!-- Dependencies for JDK >=9 update -->
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.3.0</version>
+ </dependency>
</dependencies>
</dependencyManagement>
diff --git a/redback-integrations/redback-rest/redback-rest-services/pom.xml b/redback-integrations/redback-rest/redback-rest-services/pom.xml
index 8add937..b2e7dff 100644
--- a/redback-integrations/redback-rest/redback-rest-services/pom.xml
+++ b/redback-integrations/redback-rest/redback-rest-services/pom.xml
@@ -196,6 +196,19 @@
<scope>test</scope>
</dependency>
+ <!-- Needed for JDK >= 9 -->
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>javax.annotation-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
<build>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.