title: Trying to run Spock Specification using Gradle... "Test Events were not received" (In IntelliJ Idea)
body: <p>I am trying to run a simple Spock specification with Groovy, in a Gradle project. But I am getting this message <code>Test events were not received</code>.  </p>
  
  <p>Here is my build.gradle:</p>
  
  <pre><code>plugins {
      id 'groovy'
  }
  
  group 'com.Sample'
  version '1.0-SNAPSHOT'
  
  apply plugin: 'java'
  apply plugin: 'idea'
  apply plugin: 'groovy'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'org.codehaus.groovy:groovy-all:2.3.11'
      testCompile "org.spockframework:spock-core:1.1-groovy-2.4"
  }
  </code></pre>
  
  <p>Here is my spock specification :</p>
  
  <pre><code>import spock.lang.Specification
  class SampleSpec extends Specification {
  
      def "validate string concat"(){
  
          given:
          def string1 = "hello"
          def string2 = "world"
  
          when:
          def stringConcat = string1.concat(string2)
  
          then:
          stringConcat == "helloworld"
      }
  }
  </code></pre>
  
  <p>Here is the message I get when I run the Spock Specification:</p>
  
  <pre><code>&gt; Task :cleanTest UP-TO-DATE
  &gt; Task :compileJava UP-TO-DATE
  &gt; Task :compileGroovy NO-SOURCE
  &gt; Task :processResources NO-SOURCE
  &gt; Task :classes UP-TO-DATE
  &gt; Task :compileTestJava NO-SOURCE
  &gt; Task :compileTestGroovy NO-SOURCE
  &gt; Task :processTestResources NO-SOURCE
  &gt; Task :testClasses UP-TO-DATE
  &gt; Task :test NO-SOURCE
  BUILD SUCCESSFUL in 0s
  2 actionable tasks: 2 up-to-date
  9:20:33 AM: Tasks execution finished ':cleanTest :test --tests "SampleSpec.validate string concat"'.
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p><strong>EDIT:
  Now my Spock tests are running successfully but I am getting this message:</strong> </p>
  
  <pre><code>WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/dtara/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.9/3334e99a8baae12d6e014d444149e337ceb99a00/groovy-all-2.4.9.jar) to method java.lang.Object.finalize()
  WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  </code></pre>
  
  <p>**Anyone knows that this means? Should I worry about it? **</p>