There was an error while loading. Please reload this page.
1 parent 5c4da34 commit 2ae734dCopy full SHA for 2ae734d
scripts/build_for_travis.sh
@@ -9,7 +9,7 @@ set -e
9
COMMON_FLAGS="-Dgpg.skip=true -B -V"
10
11
IS_LEGACY=""
12
-if echo $TRAVIS_JDK_VERSION | egrep -q 'jdk[67]'; then
+if echo $TRAVIS_JDK_VERSION | egrep -q '(jdk|jre)[67]($|[^0-9])'; then
13
IS_LEGACY=1
14
# The main library only uses jdk6 compatible dependencies,
15
# but Guava 21.0 is compatibility with jdk 7.
@@ -20,6 +20,7 @@ if echo $TRAVIS_JDK_VERSION | egrep -q 'jdk[67]'; then
20
COMMON_FLAGS="$COMMON_FLAGS -Dmaven.javadoc.skip=true"
21
fi
22
23
+
24
echo "*** TRAVIS_JDK_VERSION=$TRAVIS_JDK_VERSION COMMON_FLAGS=($COMMON_FLAGS) IS_LEGACY=$IS_LEGACY"
25
26
mvn install -DskipTests=true $COMMON_FLAGS
0 commit comments