title: spock not finding unit tests
body: <p>Groovy newbie still trying to learn the ecosystem.  Today's attempt is Spock, since that seems to be how all the cool kids are writing tests now.</p>
  <p>I hacked together the first example from the <a href="https://github.com/spockframework/spock-example" rel="nofollow noreferrer">Spock Example Project</a>...my only change is that I'm trying to use Grape for dependency management, rather then Gradle/Maven/Ant because I still don't know those things</p>
  <pre><code>@Grab(group='org.spockframework', module='spock-core', version='2.1-groovy-2.5')
  import spock.lang.Specification
  
  class MyFirstSpecification extends Specification {
      def &quot;length of Spock's and his friends' names&quot;() {
          expect:
          name.size() == length
  
          where:
          name     | length
          &quot;Spock&quot;  | 5
          &quot;Kirk&quot;   | 4
          &quot;Scotty&quot; | 6
    }
  }
  
  </code></pre>
  <p>When I run this with <code>groovy Spock1.groovy</code>, I get a very long stack trace, which begins with</p>
  <pre><code>$ groovy Spock1.groovy 
  May 07, 2022 8:12:29 AM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
  WARNING: TestEngine with ID 'spock' failed to discover tests
  java.lang.NoSuchMethodError: org.junit.platform.engine.EngineDiscoveryRequest.getDiscoveryListener()Lorg/junit/platform/engine/EngineDiscoveryListener;
  </code></pre>
  <p>I've also tried annotating the test method with <code>org.junit.jupiter.api.Test</code> (hey, it seemed to work with the vanilla JUnit5...), and that throws a different error.</p>