Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Build Fails [Java 17+ compatibility] #7182

Open
fjblau opened this issue Sep 1, 2022 · 1 comment
Open

Gradle Build Fails [Java 17+ compatibility] #7182

fjblau opened this issue Sep 1, 2022 · 1 comment

Comments

@fjblau
Copy link

fjblau commented Sep 1, 2022

Running a fresh install of ML and DH... using the gradle deploy, I get:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':mlDeployApp'.

class com.marklogic.hub.deploy.commands.LoadUserModulesCommand tried to access private method 'void java.net.URLDecoder.()' (com.marklogic.hub.deploy.commands.LoadUserModulesCommand is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @740548e6; java.net.URLDecoder is in module java.base of loader 'bootstrap')

@ryanjdew
Copy link
Contributor

ryanjdew commented Sep 5, 2023

This was due to an incompatibility with Java 17. We haven't added Java 17 to our support matrix yet.

Upgrading to DH 6.0 and the project's gradle wrapper to 7.3 or higher (See: https://docs.gradle.org/current/userguide/compatibility.html) appears to resolve the issue with initial tests. We've added an item in our backlog to add more extensive testing for Java 17 compatibility.

@ryanjdew ryanjdew changed the title Gradle Build Fails Gradle Build Fails [Java 17+ compatibility] Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants