Try to use jdk11 and jdk7 concurrently
language: java
dist: trusty
jdk:
- - openjdk7
-# - oraclejdk11
+ - oraclejdk11
env:
global:
@@ -27,10 +26,13 @@ before_cache:
- rm -rf $HOME/.m2/repository/org/apache/logging/log4j
install:
+ - jdk_switcher use openjdk7
- mvn -t .travis-toolchains.xml install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
+ - jdk_switcher use openjdk7
- mvn -t .travis-toolchains.xml test -B -V
after_success:
+ - jdk_switcher use openjdk7
- mvn -t .travis-toolchains.xml -pl !log4j-bom jacoco:prepare-agent test jacoco:report coveralls:report -B -V
