Update to Spock 2.1 and update other dependencies

main
Leonard Brünings 3 years ago
parent 5e4c048ada
commit 1b0b6764e8
No known key found for this signature in database
GPG Key ID: F9E60CA0B37C6EAA

@ -15,19 +15,19 @@ repositories {
dependencies { dependencies {
// mandatory dependencies for using Spock // mandatory dependencies for using Spock
implementation "org.codehaus.groovy:groovy:3.0.8" implementation "org.codehaus.groovy:groovy:3.0.9"
testImplementation platform("org.spockframework:spock-bom:2.0-groovy-3.0") testImplementation platform("org.spockframework:spock-bom:2.1-groovy-3.0")
testImplementation "org.spockframework:spock-core" 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 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 // optional dependencies for using Spock
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used 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 'net.bytebuddy:byte-buddy:1.12.7' // 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) 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 // dependencies used by examples in this project
testRuntimeOnly "com.h2database:h2:2.1.210" testRuntimeOnly "com.h2database:h2:2.1.210"
implementation "org.codehaus.groovy:groovy-sql:3.0.8" implementation "org.codehaus.groovy:groovy-sql:3.0.9"
} }
test { test {

@ -11,7 +11,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<groovy.version>3.0.8</groovy.version> <groovy.version>3.0.9</groovy.version>
</properties> </properties>
<build> <build>
@ -70,7 +70,7 @@
<dependency> <dependency>
<groupId>org.spockframework</groupId> <groupId>org.spockframework</groupId>
<artifactId>spock-bom</artifactId> <artifactId>spock-bom</artifactId>
<version>2.0-groovy-3.0</version> <version>2.1-groovy-3.0</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -98,7 +98,7 @@
<dependency> <!-- enables mocking of classes (in addition to interfaces) --> <dependency> <!-- enables mocking of classes (in addition to interfaces) -->
<groupId>net.bytebuddy</groupId> <groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId> <artifactId>byte-buddy</artifactId>
<version>1.11.0</version> <version>1.12.7</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) --> <dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) -->

Loading…
Cancel
Save