I'm migrating to a new machine, and, in the process, I decided to install the latest version of IDEA. Please see my version specifics below.
IntelliJ IDEA 2016.1.1
Build #IU-145.597, built on March 29, 2016
JRE: 1.8.0_40-release-b132 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Our project is a multi-module gradle based project. I have test class dependencies among modules. For example, We have a util module with with a class TestHelper. We have another module called customers with test classes that reference the TestHelper class in util. In my customers module's build.gradle, I have the following dependencies defined:
compile project (':util')
testCompile project(path: ':util', configuration: 'tests')
When I build and run from the command line on my new machine using './gradlew clean build test', everything compiles without issue. However, when I try to build and from IDEA (even without building, I see errors in the editor), I get errors in all of my test classes that reference test classes from other modules. I've tried quitting and restarting IDEA, invalidating caches, doing a gradle clean from the command line, and using the Rebuild Project in IDEA all without success. Does anyone have any suggestions?