Comments (3)
This is something that grew historically when trying to make life easier for gradle projects that depend on JavaFX. The JavaFX components must be detected as modules by the java runtime and therefor the jars must be defined on the module path. That's why, at first (before the existence of this plugin), we used the gradle modules plugin. We've provided changes to that plugin to make it work together with non-modular projects as well (see java9-modularity/gradle-modules-plugin#24).
Currently, the gradle modules plugin will indeed put all runtime dependencies on the module path, which might cause split package issues, because not all dependencies are safe to be used in a modular environment.
The best solution seems to me, that we get rid of the changes for "non-modular" support in the gradle modules plugin. I don't think we should even fix the module-path/classpath issue because, in retrospect, it just makes sense that the gradle modules plugin does it's work only in the case where a modular project is detected.
The second change is then to be done in the gradle javafx plugin. In case it detects that it is applied to a non-modular project, only the javafx artifacts should be added to the module path. All other dependencies should stay on the classpath.
from javafx-gradle-plugin.
See the following issue in the gradle modules plugin: java9-modularity/gradle-modules-plugin#47
from javafx-gradle-plugin.
The gradle modules plugin has been updated, but I still see classpath conflict issues when using this plugin. I guess you have to release a new version?
from javafx-gradle-plugin.
Related Issues (20)
- Compatibility with configuration cache
- Bump org.javamodularity.moduleplugin version to 1.8.12 to fix Kotlin 1.7+ compatibility HOT 4
- Since v0.0.12 vscode does not find modules HOT 3
- Plugin not working, starting with Gradle 7.5 HOT 3
- Gradle Test Executor log spam when used with JUnit 5 + Gradle 7.6 + Java 17
- Tests needs the snapshot/release version of the plugin to run
- Cannot compile/run with the new 'configurations' property HOT 6
- Unknow error
- release workflow is broken
- Error initializing QuantumRenderer: no suitable pipeline found in version 0.1.0 on mac m1 HOT 9
- Graal AOT compilation not working, probably due to the JFX plugin HOT 4
- java.lang.ClassNotFoundException: com.sun.javafx.tk.quantum.QuantumToolkit
- version 0.1.0 configuration as api but not work
- Cannot choose between the following variants of JavaFX component modules like org.openjfx:javafx-fxml:21 HOT 3
- Please add Kotlin DSL example on how to add variants in the documentation HOT 1
- Cannot choose between the following variants of org.openjfx:javafx-fxml:21 HOT 2
- Updating from 0.0.14 to 0.1.0 breaks working Quarkus Application HOT 2
- a plethora of warnings about deprecated features failing to work in the upcoming gradle 9 release
- [Eclipse] Tests dependencies are not visible in modular project HOT 9
- Updating from 0.0.14 to 0.1.0 breaks working JavaFX Application HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javafx-gradle-plugin.