Permalink
Browse files

Add JDK9 Travis job

Differences of java 9 vs pre-java 9 build:
* source=target=1.6 (1.5 is not supported in java 9)
* ASM version == 6.0_ALPHA (for java 9 bytecode support)
  • Loading branch information...
vlsi committed Jun 23, 2016
1 parent e1832bd commit 2d19f4c33962de2742035fd0e7c7770643ff3f68
Showing with 47 additions and 6 deletions.
  1. +32 −4 .travis.yml
  2. +15 −2 pom.xml
View
@@ -1,5 +1,33 @@
sudo: false
language: java
jdk:
- oraclejdk8
- openjdk7
- openjdk6
before_script:
- echo "MAVEN_OPTS='-Xmx512m -Dgpg.skip=true'" > ~/.mavenrc
- if [[ "x$JDK" == *'x9'* ]]; then remove_dir_from_path $JAVA_HOME/bin; export JAVA_HOME=/usr/lib/jvm/java-9-oracle; export PATH=$JAVA_HOME/bin:$PATH; java -Xmx32m -version; fi
cache:
directories:
- '$HOME/.m2/repository'
before_cache:
# No sense in caching current build artifacts
rm -rf $HOME/.m2/repository/cglib
# Skip default "mvn install" issued by Travis
install: true
script:
- mvn test -B -V
matrix:
fast_finish: true
allow_failures:
- env: JDK=9
include:
- jdk: oraclejdk8
- jdk: oraclejdk8
addons:
apt:
packages:
- oracle-java9-installer
env: JDK=9
- jdk: openjdk7
- jdk: openjdk6
View
17 pom.xml
@@ -54,6 +54,7 @@
<java.version.source>1.5</java.version.source>
<java.version.target>1.5</java.version.target>
<asm.version>5.0.4</asm.version>
<java.compiler.argument />
<java.test.compiler.argument>${java.compiler.argument}</java.test.compiler.argument>
@@ -84,6 +85,18 @@
<java.test.compiler.argument>-parameters</java.test.compiler.argument>
</properties>
</profile>
<profile>
<id>java9</id>
<activation>
<jdk>[1.9,)</jdk>
</activation>
<properties>
<java.version.source>1.6</java.version.source>
<java.version.target>1.6</java.version.target>
<asm.version>6.0_ALPHA</asm.version>
<java.test.compiler.argument>-parameters</java.test.compiler.argument>
</properties>
</profile>
</profiles>
<!-- ====================================================================== -->
@@ -146,7 +159,7 @@
<additionalDependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>5.0.4</version>
<version>${asm.version}</version>
</additionalDependency>
<additionalDependency>
<groupId>org.apache.ant</groupId>
@@ -208,7 +221,7 @@
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>5.0.4</version>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>

0 comments on commit 2d19f4c

Please sign in to comment.