How to add a dependency to Maven
Add the following org.spockframework : spock-groovy2-compat maven dependency to the pom.xml
file with your favorite IDE (IntelliJ / Eclipse / Netbeans):
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-groovy2-compat</artifactId>
<version>2.4-M1-groovy-2.5</version>
</dependency>
How to add a dependency to Gradle
Gradle Groovy DSL: Add the following org.spockframework : spock-groovy2-compat gradle dependency to your build.gradle
file:
implementation 'org.spockframework:spock-groovy2-compat:2.4-M1-groovy-2.5'
Gradle Kotlin DSL: Add the following org.spockframework : spock-groovy2-compat gradle kotlin dependency to your build.gradle.kts
file:
implementation("org.spockframework:spock-groovy2-compat:2.4-M1-groovy-2.5")
How to add a dependency to SBT Scala
SBT Scala: Add the following org.spockframework : spock-groovy2-compat sbt scala dependency to your build.sbt
file:
libraryDependencies += "org.spockframework" % "spock-groovy2-compat" % "2.4-M1-groovy-2.5"