Can't find module when running JUnit

I’ve done all the hacks you have to do to get Buildship to put things on your module path. I’ve checked it in Eclipse and it worked. The project and both modules are on the module path. But when I try to run the unit tests, I get:

Error occurred during initialization of boot layer
java.lang.module.FindException: Module core.resource not found, required by data.formats.library

Anyone seen this before?


An interesting symptom: when I run “gradle eclipse” the problem goes away for a little while. Then it comes back again.

Hi! Buildship does not have any special support for jpms. Some support can be achieved with classpath customization, but that’s all. We simply haven’t seen many reports in the area and so we did not prioritize the related work.

An interesting symptom: when I run “gradle eclipse” the problem goes away for a little while. Then it comes back again.

Using Buildship and the eclipse Gradle task is mutually exclusive. The eclipse task generates the .classpath and .project files that overwrite the configs set by Buildship (and vica versa).

I have the same problem. Just created an issue for it https://github.com/eclipse/buildship/issues/1045

I hope it gets solved!