wolkenschloss / nubes

Learning project for microservices
Apache License 2.0
0 stars 0 forks source link

Cannot compile nubes with gradle jvm set to jdk 16 #215

Open haschi opened 2 years ago

haschi commented 2 years ago

Build should be successful even if Gradle is using JDK 16:

The problem could be that the tests are being run with the wrong JDK.

$ ./gradlew build -Dorg.gradle.java.home=/usr/lib/jvm/java-16-openjdk-amd64

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: wolkenschloss/TestbedPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0
> wolkenschloss/TestbedPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
15 actionable tasks: 15 up-to-date