Closed lapplislazuli closed 3 years ago
Clearly this is an error in Gradle, not in ELKI.
My guess is that you did not install a Java JDK, and hence your docker container cannot compile Java.
Try using a JDK container, not a JRE container. i.e., try
FROM gradle:7.1-jdk11
not jre.
If that resolves the issue, please file a bug with gradle to provide a more helpful error message (e.g., "no JDK installed") instead of a NPE.
@kno10 Thanks, that ... I feel ashamed now :S
It's not your fault. Gradle should provide a better error message instead of
java.lang.NullPointerException (no error message)
FYI: the next version of Gradle should report "Java compiler is not available." via gradle/gradle/pull/17617
Hi,
I'm trying to build as per README within a Docker, and my Gradle Build is failing.
I use the following short Dockerfile:
which gives the following
(Full file output.log)
I have this also outside of the Docker. I get the same errors for gradle jar and gradle shadowjar, also on JDK8.