Update to Spock 2.2 and Groovy 4.0

This commit is contained in:
Leonard Brünings
2022-09-11 11:07:46 +02:00
committed by Leonard Brünings
parent 5398f5ebc9
commit 40f103c211
2 changed files with 7 additions and 9 deletions
+3 -5
View File
@@ -15,8 +15,8 @@ repositories {
dependencies { dependencies {
// mandatory dependencies for using Spock // mandatory dependencies for using Spock
implementation 'org.codehaus.groovy:groovy:3.0.10' implementation 'org.apache.groovy:groovy:4.0.5'
testImplementation platform("org.spockframework:spock-bom:2.1-groovy-3.0") testImplementation platform("org.spockframework:spock-bom:2.2-groovy-4.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
@@ -27,7 +27,7 @@ dependencies {
// 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.9" implementation "org.apache.groovy:groovy-sql:4.0.5"
} }
test { test {
@@ -36,5 +36,3 @@ test {
events "passed", "skipped", "failed" events "passed", "skipped", "failed"
} }
} }
+4 -4
View File
@@ -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.9</groovy.version> <groovy.version>4.0.5</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.1-groovy-3.0</version> <version>2.2-groovy-4.0</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@@ -91,7 +91,7 @@
</dependency> </dependency>
<!-- Optional dependencies for using Spock --> <!-- Optional dependencies for using Spock -->
<dependency> <!-- use a specific Groovy version rather than the one specified by spock-core --> <dependency> <!-- use a specific Groovy version rather than the one specified by spock-core -->
<groupId>org.codehaus.groovy</groupId> <groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId> <artifactId>groovy</artifactId>
<version>${groovy.version}</version> <version>${groovy.version}</version>
</dependency> </dependency>
@@ -120,7 +120,7 @@
<version>2.1.210</version> <version>2.1.210</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.groovy</groupId> <groupId>org.apache.groovy</groupId>
<artifactId>groovy-sql</artifactId> <artifactId>groovy-sql</artifactId>
<version>${groovy.version}</version> <version>${groovy.version}</version>
</dependency> </dependency>