Closed icuxika closed 3 years ago
Try:
./gradlew :<project>:dependencies
or (for root):
./gradlew :dependencies
to see where are duplicates coming from and exclude them where necessary.
@alshan
Thank you for your reply. I used a gradle plugin extraJavaModuleInfo in my project. Then I can execute gradle run
to run the program. But there are some problems when I try to package the applicaiton. So I temporarily adopted a non-modular way to complete the goal.
Modular project: KtFX-Lets-Plot(master) Non-modular proejct: KtFX-Lets-Plot(non-modular)
I have successfully used it in a non-module JavaFX project, but I don't know how to use it in a modular javafx project.
I configure my project with the code shown above,but
gradle run
gives me lots of output likejavafx.controlsEmpty reads package jetbrains.datalore.plot from both lets.plot.jfx and lets.plot.image.export
.Actually, I have excluded
xml-apis
fromlets-plot-image-export
, which has reduced a lot of errors.Now I don’t know how to continue to deal with this problem.