Skip to content

Commit 184345d

Browse files
committed
workaround Travis javadoc build
1 parent 8aeba9a commit 184345d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/build_for_travis.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ if echo $TRAVIS_JDK_VERSION | egrep -q '(jdk|jre)[67]($|[^0-9])'; then
1414
# The main library only uses jdk6 compatible dependencies,
1515
# but Guava 21.0 is compatibility with jdk 7.
1616
COMMON_FLAGS="$COMMON_FLAGS -Dguava.version=20.0"
17-
17+
fi
18+
if echo $TRAVIS_JDK_VERSION | egrep -q '(jdk|jre)9($|[^0-9])'; then
19+
;
20+
else
1821
# Older versions of javadoc barf on -Xdoclint flags used
1922
# to configure the maven-javadoc-plugin.
23+
# TODO: Newer versions barf on modules for some reason.
2024
COMMON_FLAGS="$COMMON_FLAGS -Dmaven.javadoc.skip=true"
2125
fi
2226

23-
2427
echo "*** TRAVIS_JDK_VERSION=$TRAVIS_JDK_VERSION COMMON_FLAGS=($COMMON_FLAGS) IS_LEGACY=$IS_LEGACY"
2528

2629
mvn install -DskipTests=true $COMMON_FLAGS

0 commit comments

Comments
 (0)