Comments (4)
I have applied the plugin in a multi-project setup and it ran fine without any issues. This makes me think that the issue is not specifically related to multi-project structures.
This issue arises because some code triggered the declared dependencies to be resolved. Once that is done, you can no longer change the project dependencies, resulting in the error you mention. Can you provide a project that reproduces the error? I'm not sure yet if the proposed solution is the best one.
from javafx-gradle-plugin.
The failure depends on the order of project dependencies.
Let’s assume you have two projects, A and B, where B depends on A.
It will fail if A uses the plugin.
It runs OK if B (and only B) uses the plugin.
I can provide a minimal example on Monday.
from javafx-gradle-plugin.
OK, you're right. I've trimmed down my own project to a minimum where the problem is triggered, and that is actually not a multi-project.
It is triggered by anything referring to the configurations
property.
Steps to reproduce:
- Check out the HelloFX sample repo https://github.com/openjfx/samples.git.
- Go to the
samples/HelloFX/Gradle/hellofx
directory. - Add the following line to
build.gradle
:
System.out.println(configurations.runtime.collect{it.name})
Gradle will now fail, e.g.:
$ ./gradlew run
Parallel execution is an incubating feature.
> Configure project :
[]
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'hellofx'.
> Cannot change dependencies of configuration ':compile' after it has been included in dependency resolution.
* 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 0s
Switching to my fork (version 0.0.6-SNAPSHOT) will restore expected behaviour.
from javafx-gradle-plugin.
Fixed with #15.
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.