How in Eclipse project module java-9 have modulepath and classpath together?

My Eclipse 2019-06 with Buildship 3.1.0.v20190501-0832 shows a different module path than your setup shows, @Graou74:


As an experiment, I created a project using the build script you listed above. When I run the :test task in Eclipse — with the build script precisely how you wrote it above — I get this:

> Task :compileJava FAILED
.../Graou74/src/main/java/module-info.java:3: error: module not found: yamlbeans
    requires yamlbeans;
             ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
...
BUILD FAILED in 2s
1 actionable task: 1 executed

When I make these very simple changes to build.gradle

plugins{
    id 'java-library'
    id 'eclipse'
    id 'com.lingocoder.mrjar' version '0.0.13'
}
...

…and then run the :test task in Eclipse again, I get this:

...
BUILD SUCCESSFUL in 5s
3 actionable tasks: 1 from cache, 2 up-to-date

I get the same result if I run :test from the command line. First using your original (it fails), then applying mrJar like above (it succeeds).

Give mrJar a try. Let me know if it works for you?