title: gradle test raise error: java.lang.NoClassDefFoundError: Could not initialize class groovy.lang.GroovySystem
body: <p>I try to run "gradle test", and get error</p>
  
  <p>My test is</p>
  
  <pre><code>class HelperTest extends ro.gd.Test {
      Plugin o;
  
      void setUp() {
          o = new Plugin();
      }
  
      void testGetIdeaDeps() {
          def r = o.ideaDeps
          asrHaveVal r
      }
  }
  </code></pre>
  
  <p>when i run gradle test, it raise:</p>
  
  <pre><code>junit.framework.AssertionFailedError: Exception in constructor: testGetIdeaDeps (java.lang.NoClassDefFoundError: Could not initialize class groovy.lang.GroovySystem
      at org.codehaus.groovy.reflection.ClassInfo.isValidWeakMetaClass(ClassInfo.java:221)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClassForClass(ClassInfo.java:191)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:236)
      at ro.gd.idea.HelperTest.$getStaticMetaClass(HelperTest.groovy)
      at ro.Test.&lt;init&gt;(Test.groovy)
      at ro.gd.Test.&lt;init&gt;(Test.groovy)
      at ro.gd.idea.HelperTest.&lt;init&gt;(HelperTest.groovy)
  ...
  </code></pre>
  
  <p><a href="https://drive.google.com/drive/#folders/0B08GAyjqgToLUGNjbG52ZS1GZDQ/0B08GAyjqgToLfkdqWl9MYlc5cTRicHhtaUhHYkR2eVEzdm1xZkhHU3YxcXBSTVZrR3JmVGc" rel="nofollow">Here</a> is my full code</p>