Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Resolved
-
12.3
-
None
-
None
-
Java 15
Gradle 6.7
Ubuntu 21
Description
First of all: gradle support in NB is great! Maybe best there is!
I have a multproject java modular gradle build.
If a project has an api dependency to a second project, that works fine.
However if a 3rd project also has an dependency to the 2nd project, that does not work.
NB does not recognize the classes from the 1st project.
The gradle build works.
This can be overcome by manually adding the implementation dependency of project 1 to project 3 in project 3's build.gradle.
However that is what you do NOT want to do and why you are using gradle in the first place... (among other things of course)
Steps to reproduce: Create gradle project with java modular solution (infer-module-path = true). Create 3 projects with "requires transitive" in module-info.java and "api dependency" build.gradle as described .