Skip to content

[Bug]: Build error with Java > 21 #11145

@ankane

Description

@ankane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions