Open Glavo opened 6 years ago
Same problem, with Classpath this does work very well. As soon as switching to Module-Path problems start to appearer. @melix Is there some magic to perform to make this work?
You can try a similar approach to what I've done in this project. This requires some dummy classes so that the Java compiler is happy.
@scholzi100 @melix Now, I use the modularity.mixedJavaRelease fuction in gradle-modules-plugin plugin.
In addition, sometimes I will achieve this by modifying the version information in the bytecode, which can avoid some JDK related problems.
When I try to place module-info.java in src/main/java9, Gradle will report an error at compile time:
Project package structure: module-info.java: