Commit 0ff537ef authored by Kazuki Shimizu's avatar Kazuki Shimizu

Change JDKs on Travis CI

parent e8fa7f36
......@@ -2,23 +2,27 @@ sudo: required
language: java
jdk:
- openjdk8
- oraclejdk8
- oraclejdk11
- openjdk11
matrix:
include:
- env: JDK='Oracle JDK 10'
install: . ./install-jdk.sh -F 10 -L BCL
- env: JDK='Oracle JDK 9'
jdk: oraclejdk9
- env: JDK='Oracle JDK 8'
jdk: oraclejdk8
- jdk: openjdk10
install:
# Download dependency artifacts using JDK8 (Setting for prevent "PKIX path building failed")
- export ORIGINAL_JAVA_HOME=$JAVA_HOME
- jdk_switcher use openjdk8
- ./mvnw -U install -q -DskipTests=true
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
cache:
directories:
- $HOME/.m2
- $HOME/.sonar/cache
before_install:
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
install: true
script:
......
......@@ -70,7 +70,7 @@
<!-- for plugins -->
<license-maven-plugin.version>3.0</license-maven-plugin.version>
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.1</jacoco-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version>
<owasp-dependency-check-plugin.version>3.2.1</owasp-dependency-check-plugin.version>
</properties>
......@@ -271,23 +271,23 @@
<profiles>
<profile>
<id>jdk9</id>
<id>jdk10</id>
<activation>
<jdk>9</jdk>
<jdk>10</jdk>
</activation>
<properties>
<!-- coverall 4.3.0 or previous version does not work on Java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
<!-- coverall 4.3.0 or previous version does not work on Java 9+, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
<coveralls.skip>true</coveralls.skip>
<sonar.skip>true</sonar.skip>
</properties>
</profile>
<profile>
<id>jdk10</id>
<id>jdk11</id>
<activation>
<jdk>10</jdk>
<jdk>11</jdk>
</activation>
<properties>
<!-- coverall 4.3.0 or previous version does not work on Java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
<!-- coverall 4.3.0 or previous version does not work on Java 9+, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
<coveralls.skip>true</coveralls.skip>
<sonar.skip>true</sonar.skip>
</properties>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment