Problem with module dependencies

Answered

The project I'm working on (an imported eclipse project) has a bunch of modules and there is a bit of cyclic dependency that seems to be causing some problems. Module B depends on module A while module A depends on an obfuscated jar of module B. This jar is being built outside the IDE by some gradle tasks. With this dependency structure, everything compiles fine but looking at the source of files in module B shows tons of red - most all imports and types not being resolvable. But again, this doesn't actually prevent compilation. If I change module A to depend on the source of module B instead of the jar, all these spurious errors go away.

0
1 comment

It's always a good idea to depend on the sources within the same project.

If you think it's a bug, please report at https://youtrack.jetbrains.com/issues/IDEA and attach a sample project to reproduce.

0

Please sign in to leave a comment.