Strange behavior in multi module build

I have the following project structure:

  • root
  • domain-core
    • intf
    • impl
  • domain
    • impl
    • intf

settings.gradle includes ‘domain-core:intf’ ‘domain-core:impl’, ‘doamain:intf’ and ‘domain:impl’

domain/impl/build.gradle contains a dependency to domain-core/intf

compile project(’:domain-core:intf’)

However, “gradle build” complains about compile errors. Apparently the compiler can not find a class when compiling domain/impl. But the class is definitly included in domain-core/intf. Also in eclipse (using gradle STS plugin) domain-core:intf is not listed under “gradle dependencies” in the project explorer.

I am sure there is a reason for this behavior. I just can’t figure it out…

=== build output ===
:domain-core:intf:processResources UP-TO-DATE
:domain:intf:processResources UP-TO-DATE
/…somepath…/domain/impl/src/main/java/net/d80harri/coach/domain/ error: package does not exist

Hi Harald,

can you attach a small example project that reproduces this problem?