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

Cannot parse java version #183

Closed
mudlee opened this issue May 4, 2021 · 3 comments
Closed

Cannot parse java version #183

mudlee opened this issue May 4, 2021 · 3 comments

Comments

@mudlee
Copy link

mudlee commented May 4, 2021

I use this plugin in a gradle project where I have 2 subprojects.

I get this error, but not always, just randomly:

> Task :sandbox:prepareMergedJarsDir FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sandbox:prepareMergedJarsDir'.
> Cannot parse java version: 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
5 actionable tasks: 1 executed, 4 up-to-date

If I run this for few times, some of them fail, some not:

./gradlew clean && ./gradlew jlink

I tried to put the version to loads of places, but still it sometimes fail.

@mudlee
Copy link
Author

mudlee commented May 4, 2021

Update: this should be a race condition or something like that, because if I run the jlink command with --info the problem doesn't occur.

siordache added a commit that referenced this issue May 4, 2021
@siordache
Copy link
Member

I think that I found the cause of the race condition and I fixed it in 2.23.8. Give it a try!

@mudlee
Copy link
Author

mudlee commented May 4, 2021

Looks like now it's working! Thanks for the really quick fix :)

@mudlee mudlee closed this as completed May 4, 2021
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