Open lmarchione-r7 opened 5 days ago
I think it is the source compatibility flag in the build.gradle file. It's set to 17, so Gradle is complaining because it's building with Java 21. Can you try bumping that to Java 21?
We haven't bumped that example to use Java 21 yet, the instructions are still set to Java 17 (see README for that example), which indicates you should set BP_JVM_VERSION=17
.
Expected Behavior
The
java/java-node/gradle-node
sample should build out of the box.Current Behavior
The release of
paketo-buildpacks/bellsoft-liberica:v11.0.0
includes an upgrade ofBP_JVM_VERSION
from 17 to 21. This breaks thejava/java-node/gradle-node
sample.Possible Solution
I'm not sure why the change to JVM 21 would break this sample.
Steps to Reproduce
See below for the error when using bellsoft v11.0.0 with default JVM 21.
Motivations