Skip to content

Commit a52a02e

Browse files
committed
Prevent build error on openjdk6
1 parent d78a82b commit a52a02e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jdk:
1616
before_install:
1717
# for gh-311 (modify to use the TLSv1.2 on Java 7)
1818
- export _JAVA_OPTIONS=-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
19+
- |
20+
if [ $TRAVIS_JDK_VERSION == "openjdk6" ]; then
21+
jdk_switcher use openjdk7
22+
./mvnw install -P jdk16
23+
./mvnw clean
24+
jdk_switcher use openjdk6
25+
fi
1926
2027
after_success:
2128
- chmod -R 777 ./travis/after_success.sh

0 commit comments

Comments
 (0)