Closed ghostman2013 closed 4 years ago
Replace the line:
compile 'org.controlsfx:controlsfx:11.0.1'
with
compile('org.controlsfx:controlsfx:11.0.1') {
exclude group: 'org.openjfx'
}
Replace the line:
compile 'org.controlsfx:controlsfx:11.0.1'
with
compile('org.controlsfx:controlsfx:11.0.1') { exclude group: 'org.openjfx' }
Thank you very much, it helped! I also have added
jpackage {
resourceDir = file("$buildDir/resources")
}
to include my resources in app.
I am trying to use jlink-plugin to build .app for MacOS, my build.gradle is below:
The problem is when I try to call jpackage, Gradle downloads both variants of JavaFX libraries for Linux and MacOS and I get error: Error: Two versions of module javafx.base found in yummy/build/jlinkbase/jlinkjars (javafx-base-14-mac.jar and javafx-base-14-linux.jar)
How can I resolve this bug?
P.S. I am a beginner in Java world and, honestly, I am not sure if it's a bug of this plugin. If I missed, please, advice where I should ask about that bug then.