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 fxJar' fails on Gradle 6.5, Gradle 5.6.4, but succeeds for Gradle 4.10.3 #718

Open
meltingscales opened this issue Jun 26, 2020 · 0 comments

Comments

@meltingscales
Copy link

gradle fxJar using Gradle 6.5, 5.6.4 will fail with:

PS C:\Users\Henry\Github\ShootOFF> gradle fxJar
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Henry\Github\ShootOFF\build.gradle' line: 216

* What went wrong:
A problem occurred evaluating root project 'ShootOFF'.
> Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.

* 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 14s

But it works with Gradle 4.10.3:

PS C:\Users\Henry\Github\ShootOFF> gradle fxJar

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1s
13 actionable tasks: 13 up-to-date

I suspect this is because Gradle 4+ removed the 'classesDir' property and replaced it with 'classesDirs'.

Source: https://stackoverflow.com/questions/54707148/gradle-could-not-get-unknown-property-classesdir-for-main-classes

Maybe mention this in the README or Wiki?

Java version

C:\Users\Henry>javac -version
javac 1.8.0_221
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

1 participant