Specify Travis tests with jdk8

By default, Travis CI will use JDK 7 to execute build tests. This
should cause Travis CI to use JDK 8 instead, which will make it
compatible with this project’s gradle.build.