title: Gradle, IntelliJ and ScalaTest plugin: suddenly broken
body: <p>This is very puzzling. I have a multi module polyglot JVM project built using Gradle. I have a few java modules and a couple scala modules. The scala module uses ScalaTest as the test framework. I set up the Gradle to use the <a href="https://github.com/maiflai/gradle-scalatest">scalatest plugin</a> to run tests. I had the whole thing running like a charm in IntelliJ for about a month (using the Gradle idea plugin). Now all of a sudden the ScalaTest specs won't run from the IDE anymore with the following error:</p>
  
  <pre><code>Unable to load a Suite class. This could be due to an error in your runpath. Missing class: com.mypackage.MySpec
  </code></pre>
  
  <p>Does anybody know what's going on? I am not sure what has changed since the first time I set up my build file that might have messed this up. This is really frustrating. Ideas?</p>
  
  <p><strong>EDIT</strong>: Apparently my junit tests won't run either. Looks like the compiled classes aren't on the classpath used by Intellij. This is what I get if I try to run a JUnit test case:</p>
  
  <pre><code>Class not found: "com.mypackage.MyUnitTests"
  </code></pre>