Update to Spock 2.0, Gradle 7.0.2, Maven 3.8.1

This commit is contained in:
Leonard Brünings
2021-05-19 19:38:03 +02:00
parent a2b68c5ba9
commit 735979023b
6 changed files with 17 additions and 46 deletions
+9 -17
View File
@@ -15,29 +15,21 @@ repositories {
dependencies {
// mandatory dependencies for using Spock
compile "org.codehaus.groovy:groovy:3.0.7"
testCompile platform("org.spockframework:spock-bom:2.0-M4-groovy-3.0")
testCompile "org.spockframework:spock-core"
testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
implementation "org.codehaus.groovy:groovy:3.0.8"
testImplementation platform("org.spockframework:spock-bom:2.0-groovy-3.0")
testImplementation "org.spockframework:spock-core"
testImplementation "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
// optional dependencies for using Spock
testCompile "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntime "net.bytebuddy:byte-buddy:1.10.10" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:3.1" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntimeOnly "net.bytebuddy:byte-buddy:1.11.0" // allows mocking of classes (in addition to interfaces)
testRuntimeOnly "org.objenesis:objenesis:3.2" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// dependencies used by examples in this project
testRuntime "com.h2database:h2:1.4.197"
compile "org.codehaus.groovy:groovy-sql:3.0.7"
testRuntimeOnly "com.h2database:h2:1.4.197"
implementation "org.codehaus.groovy:groovy-sql:3.0.8"
}
// the remaining configuration is specific to this project, and is not required for using Spock
apply from: "gradle/ide.gradle"
task collectJars(type: Copy) {
into "$buildDir/output/lib"
from configurations.testRuntime
}
test {
useJUnitPlatform()
testLogging {