I have a gradle project with multiple modules. The modules have dependencies on one another. So far so good. For classes within the java package - this works fine and the objects are imported as expected. However, if I create a new package within java package and place the exact same class inside, gradle no longer seems to be able to find the classes to import. I have attached an image to show this:
This is the build.gradle for the integration module (injecting models from integration-model package):
I'm clearly doing something wrong but have gone round in circles trying to figure out what. Would appreciate the help. Totally stuck on this one, definitely comes down to some intellij module definitions in project structure but unsure.