Gradle project and Java 9,10,11 Modules, IntelliJ UI designer project does not compile (reproducible)

Answered

If I compound 2 or more projects using gradle and java 9, 10 or 11 modules, and the projects have IntelliJ UI designer elements, it will never compile. It shows this error: 

Error occurred during initialization of boot layer java.lang.LayerInstantiationException: Package com.intellij.uiDesigner.core in both module test2 and module test.

How can I solve that? I need to use modules on my projects. I created a ticket long ago, but no responses over the year: https://youtrack.jetbrains.com/issue/IDEA-191469 

2 comments
Comment actions Permalink

I can run the project with these options disabled:

File | Settings | Editor | GUI Designer | Automatically copy form runtime classes to the output directory

File | Settings | Build, Execution, Deployment | Build Tools | Gradle | Runner | Delegate IDE build/run actions to gradle

 

1
Comment actions Permalink

Thanks! I will try that

0

Please sign in to leave a comment.