nessie icon indicating copy to clipboard operation
nessie copied to clipboard

[Bug]: Build error with Java > 21

Open ankane opened this issue 5 months ago • 0 comments

What happened

Hi, thanks for Nessie!

The readme mentions it should build with Java 21 or greater, but when building with OpenJDK 24, it fails with:

A problem occurred configuring root project 'nessie'.
> Could not resolve all dependencies for configuration 'classpath'.
   > Could not resolve project :nessie-build-logic.
     Required by:
         root project :
      > Failed to calculate the value of task ':nessie-build-logic:compileJava' property 'javaCompiler'.
         > Cannot find a Java installation on your machine (Mac OS X 15.6 aarch64) matching: {languageVersion=21, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}. Toolchain download repositories have not been configured.

It seems to be due to this line (changing JavaLanguageVersion.of(21) to the Java version fixes it).

How to reproduce it

  1. Clone the repo
  2. Set JAVA_HOME to point to OpenJDK 24
  3. Run ./gradlew :nessie-quarkus:assemble

Nessie server type (docker/uber-jar/built from source) and version

0.104.3, built from source

Client type (Ex: UI/Spark/pynessie ...) and version

No response

Additional information

No response

ankane avatar Aug 12 '25 01:08 ankane