From 5b662d93dfff248a84c6304cd0fc807420061f32 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Tue, 10 Oct 2017 17:56:41 +0100 Subject: [PATCH 1/4] Add module-info for Java 9 Add the module-info.java file Make the appropriate changes to pom.xml --- pom.xml | 61 ++++++++++++++++++++++++++++------ src/main/java/module-info.java | 41 +++++++++++++++++++++++ 2 files changed, 92 insertions(+), 10 deletions(-) create mode 100644 src/main/java/module-info.java diff --git a/pom.xml b/pom.xml index 6db828ae5bc..d6b28f15a70 100644 --- a/pom.xml +++ b/pom.xml @@ -63,8 +63,6 @@ Stephen Colebourne scolebourne - scolebourne@joda.org - SITA ATS Ltd 0 Java Developer @@ -593,6 +591,11 @@ 1.17.4 benchmarks + + + 3.3.0 + + true @@ -616,6 +619,40 @@ + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + + 9 + + 9 + + + + base-compile + + compile + + + + module-info.java + + + + + + + + 9 + + 7 + + org.apache.maven.plugins maven-surefire-plugin @@ -654,14 +691,18 @@ - - - - - org.apache.commons.lang3 - - - + + + + org.apache.felix + maven-bundle-plugin + + + biz.aQute.bnd + biz.aQute.bndlib + 3.5.0 + + org.apache.maven.plugins diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 00000000000..4f25555aa35 --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Apache Commons Lang provides utility classes for the core of Java. + */ +module org.apache.commons.lang3 { + + // see AbstractCircuitBreaker + requires static java.desktop; + + // all packages are exported + exports org.apache.commons.lang3; + exports org.apache.commons.lang3.arch; + exports org.apache.commons.lang3.builder; + exports org.apache.commons.lang3.concurrent; + exports org.apache.commons.lang3.event; + exports org.apache.commons.lang3.exception; + exports org.apache.commons.lang3.math; + exports org.apache.commons.lang3.mutable; + exports org.apache.commons.lang3.reflect; + exports org.apache.commons.lang3.text; + exports org.apache.commons.lang3.text.translate; + exports org.apache.commons.lang3.time; + exports org.apache.commons.lang3.tuple; + +} From d502bad924ec109d971c15b6a7a432b14f3562f1 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Tue, 10 Oct 2017 18:19:08 +0100 Subject: [PATCH 2/4] Fix Travis build --- .travis.yml | 4 +--- pom.xml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 49775378969..b594f172dfb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,12 +17,10 @@ language: java sudo: false jdk: - - openjdk7 - - oraclejdk8 - oraclejdk9 script: - mvn after_success: - - mvn clean cobertura:cobertura coveralls:report -Ptravis-cobertura + - mvn clean cobertura:cobertura -Ptravis-cobertura diff --git a/pom.xml b/pom.xml index d6b28f15a70..c80ac2d6392 100644 --- a/pom.xml +++ b/pom.xml @@ -593,6 +593,7 @@ benchmarks + 3.7.0 3.3.0 true From cb5a17949bf941118a80ef05ccd5a77717779792 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Tue, 17 Oct 2017 18:47:09 +0100 Subject: [PATCH 3/4] Reinstate compilation on Java 7 and 8 Enhance Travis build --- .travis.yml | 17 +++++++-- pom.xml | 99 ++++++++++++++++++++++++++++++++++------------------- 2 files changed, 78 insertions(+), 38 deletions(-) diff --git a/.travis.yml b/.travis.yml index b594f172dfb..f32f7aab850 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,10 +17,23 @@ language: java sudo: false jdk: + - openjdk7 + - oraclejdk8 - oraclejdk9 +cache: + directories: + - "$HOME/.m2/repository" + +before_cache: + - rm -rf $HOME/.m2/repository/org/apache/commons/commons-lang3 + +install: + - mvn --version + script: - - mvn + - mvn clean install -e -B after_success: - - mvn clean cobertura:cobertura -Ptravis-cobertura + - if [ $TRAVIS_JDK_VERSION == "openjdk7" ] || [ $TRAVIS_JDK_VERSION == "oraclejdk8" ]; then mvn -e -B clean cobertura:cobertura coveralls:report -Ptravis-cobertura; fi + - if [ $TRAVIS_JDK_VERSION == "oraclejdk9" ]; then mvn -e -B clean cobertura:cobertura -Ptravis-cobertura; fi diff --git a/pom.xml b/pom.xml index c80ac2d6392..8c30e281cdc 100644 --- a/pom.xml +++ b/pom.xml @@ -595,8 +595,6 @@ 3.7.0 3.3.0 - - true @@ -620,40 +618,6 @@ - - - org.apache.maven.plugins - maven-compiler-plugin - - - default-compile - - - 9 - - 9 - - - - base-compile - - compile - - - - module-info.java - - - - - - - - 9 - - 7 - - org.apache.maven.plugins maven-surefire-plugin @@ -869,6 +833,31 @@ + + java7and8 + + [1.7,9) + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + + module-info.java + + + + + + + + java9 @@ -881,7 +870,45 @@ 3.0.0-M1 true + + true + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + default-compile + + 9 + + + + + base-compile + + compile + + + + module-info.java + + + + + + + + 9 + + 7 + + + + From 886b26aa09efc1a4bfca3470e33b952399f18f6d Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Wed, 18 Oct 2017 11:07:06 +0100 Subject: [PATCH 4/4] Reinstate the default build Fix Javadoc and Checkstyle --- .travis.yml | 2 +- pom.xml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f32f7aab850..2a209d2a653 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ install: - mvn --version script: - - mvn clean install -e -B + - mvn -e -B after_success: - if [ $TRAVIS_JDK_VERSION == "openjdk7" ] || [ $TRAVIS_JDK_VERSION == "oraclejdk8" ]; then mvn -e -B clean cobertura:cobertura coveralls:report -Ptravis-cobertura; fi diff --git a/pom.xml b/pom.xml index 8c30e281cdc..b0f23b5724c 100644 --- a/pom.xml +++ b/pom.xml @@ -595,6 +595,7 @@ 3.7.0 3.3.0 + 3.0.0-M1 @@ -685,6 +686,7 @@ ${basedir}/checkstyle.xml true false + module-info.java @@ -855,6 +857,16 @@ + + + org.apache.maven.plugins + maven-javadoc-plugin + + + module-info.java + + + @@ -872,6 +884,8 @@ true true + + true