title: Grails 2.0.4/2.1.1 test-app throws ClassNotFoundException (GrailsSpecTestType)
body: <p>I have a legacy grails appliction that I recentyl upgraded 1.3.7 -> 2.0.4
  The same thing happens after I upgrade it to 2.1.1</p>
  
  <p>When I try to run test-app from GGTS I get:</p>
  
  <pre><code>| Error Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType (Use --stacktrace to see the full trace)
  </code></pre>
  
  <p>There is a similiar report from April on <a href="http://forum.springsource.org/showthread.php?136801-Issues-with-STS-3-2-0" rel="nofollow">SS site</a>.</p>
  
  <p>I also see there are a lot of questions about similiar exceptions for grails 1.3.7 -- this however is a problem affecting 2.0.4.</p>
  
  <p>EDIT: OK, it actually happens in command line too, but at least I can get it to work. 
  Unfortunately after a restart it breaks again. </p>
  
  <p>Here is what I do to fix it in console, basically I upgrade to 0.7 and the downgrade to 0.5-groovy-1.7</p>
  
  <pre><code>grails&gt; clean
  | Application cleaned.
  grails&gt; refresh-dependencies
  | Dependencies refreshed.
  grails&gt; test-app
  | Compiling 73 source files
  Note: Some input files use unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  | Compiling 119 source files
  
  | Compiling 119 source files.
  | Error Error running script test-app : java.lang.ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType (U
  se --stacktrace to see the full trace)
  grails&gt; install-plugin spock
  | Resolving plugin spock. Please wait...
  &gt; You currently already have a version of the plugin installed [spock-0.5-groovy-1.7]. Do you want to update to [spock-0
  .7]? [y,n] y
  | Plugin installed.
  grails&gt; clean
  | Application cleaned.
  grails&gt; refresh-dependencies
  | Application cleaned.....
  &gt; You currently already have a version of the plugin installed [spock-0.7]. Do you want to update to [spock-0.5-groovy-1
  .7]? [y,n] n
  | Dependencies refreshed.
  grails&gt; test-app
  &gt; You currently already have a version of the plugin installed [spock-0.7]. Do you want to update to [spock-0.5-groovy-1
  .7]? [y,n] n
  | Compiling 73 source files
  Note: Some input files use unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  | Compiling 119 source files
  
  | Compiling 119 source files.
  | Error Error running script test-app : java.lang.ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType (U
  se --stacktrace to see the full trace)
  grails&gt; install-plugin spock
  | Plugin 'spock' with version '0.7' is already installed
  | Plugin not installed.
  grails&gt; uninstall-plugin spock
  | Uninstalled plugin [spock]
  grails&gt; clean
  | Application cleaned.
  grails&gt; refresh-dependencies
  | Dependencies refreshed.
  grails&gt; test-app
  | Compiling 73 source files
  Note: Some input files use unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  | Compiling 119 source files    
  | Running 8 unit tests... 5 of 8
  </code></pre>