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

mlNewProject fails with JDK 12 #464

Closed
kcoleman-marklogic opened this issue May 22, 2019 · 2 comments
Closed

mlNewProject fails with JDK 12 #464

kcoleman-marklogic opened this issue May 22, 2019 · 2 comments
Assignees
Milestone

Comments

@kcoleman-marklogic
Copy link

I was trying to use ml-gradle 3.14 with gradle v5.4.1 and Java 12.0.1 on RHEL 7. The mlNewProject task coughed up the following failure:

Execution failed for task ':mlNewProject'.
Unable to write file at: /home/kcoleman/.gradle/daemon/5.4.1/./src/main/ml-config/databases/content-database.json; cause: ./src/main/ml-config/databases/content-database.json (No such file or directory)

Rob thought it was the same issue as #428 and as such should already have been fixed. Maybe Java 12 has found new and interesting ways to torture users.

Stepping down to Java 9 made the problem go away. I'm fine with that, but wanted to let you know about the potential Java 12 wrinkle.

@rjrudin
Copy link
Contributor

rjrudin commented May 23, 2019

This may be a simple fix in ml-gradle - it's passing in "." as the project path, and I think that just needs to be resolved to a File first within Gradle so that it doesn't resolve against the daemon directory.

@rjrudin rjrudin added this to the 3.15.0 milestone May 23, 2019
@rjrudin rjrudin self-assigned this May 23, 2019
@rjrudin
Copy link
Contributor

rjrudin commented May 30, 2019

Just verified it works on Java 11 and fails on Java 12.

rjrudin added a commit that referenced this issue May 30, 2019
@rjrudin rjrudin closed this as completed May 30, 2019
rjrudin added a commit that referenced this issue Aug 23, 2024
DEVEXP-171: Added properties for cloud auth
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

2 participants