In IDEA, if module A depends on module B, all of module A (main and tests) will be available to B. I like this.
In Gradle, if the compile dependencies for B reference A, it will be available for the main code only, not tests.
This leads to needing to do a hack like:
The problem is that this leads to some very silly looking libraries in IDEA for the A->B dependency. Stuff that isn't needed at all.
My understanding is that this is a limitation of the Gradle tooling API (as seen in IDEA-115007).
Is there any change we could get a magic extension property we could set on projects to indicate what the IDEA module dependencies would be to work around this?