Error building project on Travis

Enonic version: 6.8.1

I understand that this probably isn’t a product error, but im stuck trying to figure it out.

I want to build my projects on Travis-CI, however it fails with the following error:

FAILURE: Build failed with an exception.
* Where:
Build file '/home/travis/build/ljl/xp/build.gradle' line: 14
* What went wrong:
A problem occurred evaluating root project 'web'.
> java.lang.UnsupportedClassVersionError: com/enonic/xp/tools/gradle/AppPlugin : Unsupported major.minor version 52.0

Line 14 contains: apply plugin: ''

This happens when running ./gradlew assemble-command

Edit: I’ve tested with multiple projects, and it always happens on the line containing apply plugin: ''

No one tried this?

I think it would be really nice to make it work, since it would help a lot with creating autonomous cloud deployments!

I figured it out. Travis defaults to jdk7 so all you have to do is set this in your .travis.yml file:

language: java
jdk: oraclejdk8