language: java
sudo: false
install: ""
script: ./travis.sh
jdk:
    - openjdk7

language: java
sudo: false
install: ""
script: ./travis.sh
jdk:
    - oraclejdk8

Use jdk 8 to build, still with jdk7 compat
Use jdk 8 to build, still with jdk7 compat