-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove platform-specific dependencies on JavaFx artifacts #2369
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,20 @@ | |
*/ | ||
|
||
plugins { | ||
id("org.openjfx.javafxplugin") | ||
id("org.openjfx.javafxplugin") version "0.0.9" | ||
} | ||
|
||
javafx { | ||
version = version("javafx") | ||
modules = listOf("javafx.controls") | ||
configuration = "compile" | ||
configuration = "compileOnly" | ||
} | ||
|
||
sourceSets { | ||
test.configure { | ||
compileClasspath += configurations.compileOnly | ||
runtimeClasspath += configurations.compileOnly | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking through options provided by the JavaFX plugin, I don't see a better way to do this. Looking at discussions where other projects face the same problem (openjfx/javafx-gradle-plugin#85, https://stackoverflow.com/questions/60249348/run-gradle-tests-using-image-from-badass-runtime-plugin and some others), it seems that the community didn't yet find a clean solution either. |
||
} | ||
|
||
val JDK_18: String? by lazy { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be done by changing
javafx_plugin_version
ingradle.properties
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it seems that changing the version does nothing to fix the issue: the problem is solved by just making the edit to
configuration
below.I'm making this comment just for documentation purposes.