This is an automated email from the ASF dual-hosted git repository.
alopresto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/master by this push:
new 41518d9 NIFI-7135 - Fix Java 11 build with
com.puppycrawl.tools:checkstyle:jar:8.29 dependency
41518d9 is described below
commit 41518d953cde9776451a7f395747acd7cc8beb7a
Author: Pierre Villard <[email protected]>
AuthorDate: Tue Feb 11 19:06:14 2020 -0800
NIFI-7135 - Fix Java 11 build with com.puppycrawl.tools:checkstyle:jar:8.29
dependency
This closes #4050.
Signed-off-by: Andy LoPresto <[email protected]>
---
.travis.yml | 21 +++++++--------------
pom.xml | 27 +++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 14 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index c6e431c..a5fd764 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,8 +28,10 @@ matrix:
echo "Cached Maven repository exists, skipping dependency cache"
fi
- stage: "Cache"
- name: "Cache Dependencies - openjdk8"
- jdk: openjdk8
+ name: "Cache Dependencies - openjdk8 & openjdk11"
+ jdk:
+ - openjdk8
+ - openjdk11
script: >-
if [ ! -d "$HOME"/.m2/repository ] || [ ! "$(ls -A
"$HOME"/.m2/repository)" ] ; then
echo "Cached Maven repository does not exist, downloading
dependencies..."
@@ -38,6 +40,7 @@ matrix:
else
echo "Cached Maven repository exists, skipping dependency cache"
fi
+
# For the build stages, use -pl to exclude the following from the build to
reduce build time:
# non-api nar modules
# assembly modules
@@ -74,18 +77,8 @@ matrix:
&& test ${PIPESTATUS[0]} -eq 0
- stage: "Build"
name: "Build Java 11 EN"
- # Do not specify "jdk:" here, install-jdk.sh will download the JDK set
JAVA_HOME appropriately
- before_script:
- # Download the newest version of sormuras' install-jdk.sh to /tmp
- # install-jdk.sh is used by Travis internally, sormoras is the
maintainer of that script
- - wget -O /tmp/install-jdk.sh
https://github.com/sormuras/bach/raw/master/install-jdk.sh
- # Need to specifically install AdoptOpenJDK 11.0.4 (Linux, HotSpot)
since Travis does not offer it by default
- # The link to the AdoptOpenJDK 11.0.4 .tar.gz is taken directly from
AdoptOpenJDK's website
- - >-
- source /tmp/install-jdk.sh
- --url
'https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x64_linux_hotspot_11.0.4_11.tar.gz'
- script:
- - >-
+ jdk: openjdk11
+ script: >-
mvn clean install -V -T 1C
-pl `find . -type d \( -name "*-nar" -or -name "*-assembly" -or
-name "*hive3*" -or -name "nifi-system-test*" \) -and -not -name "*api-nar"
-and -not -path "*/target/*" -and -not -name "*__*" -printf "!./%P,"`
-Pcontrib-check,include-grpc -Ddir-only
diff --git a/pom.xml b/pom.xml
index fb42ca4..fb3972b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,6 +143,33 @@
<pluginRepositories>
<pluginRepository>
+ <id>gcs-maven-central-mirror</id>
+ <!--
+ Google Mirror of Maven Central, placed first so that it's used
instead of flaky Maven Central.
+ See
https://storage-download.googleapis.com/maven-central/index.html
+ -->
+ <name>GCS Maven Central mirror</name>
+
<url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>central</id>
+ <name>Central Repository</name>
+ <url>https://repo.maven.apache.org/maven2</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ </pluginRepository>
+ <pluginRepository>
<id>bintray</id>
<name>Groovy Bintray</name>
<url>https://dl.bintray.com/groovy/maven</url>