Skip to content

Commit

Permalink
chore: Upgrade Spock to 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Oct 26, 2022
1 parent 625cdfc commit 4cf345f
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion consumer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
testImplementation "org.codehaus.groovy:groovy-xml:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-dateutil:${project.groovyVersion}"
testImplementation 'org.hamcrest:hamcrest:2.1'
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion consumer/groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
testImplementation "org.codehaus.groovy:groovy-xml:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-dateutil:${project.groovyVersion}"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}

Expand Down
2 changes: 1 addition & 1 deletion consumer/junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
// Required for Java 9
testImplementation 'javax.xml.bind:jaxb-api:2.3.0'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion consumer/junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit5Version}"
testImplementation 'org.mockito:mockito-core:2.28.2'
testImplementation 'org.hamcrest:hamcrest:2.1'
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testImplementation "org.apache.httpcomponents.client5:httpclient5:${project.httpClientVersion}"
Expand Down
2 changes: 1 addition & 1 deletion core/matchers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-xml:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ class JsonContentMatcherSpec extends Specification {
then:
mismatches.size() == 2
mismatches*.mismatch[0].matches(/Expected \[(.*)\] to match \[(.*)\] ignoring order of elements/)
mismatches*.path =~ ['$', '$.2']

where:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ class KafkaJsonSchemaContentMatcherSpec extends Specification {
then:
mismatches.size() == 2
mismatches*.mismatch[0].matches(/Expected \[(.*)\] to match \[(.*)\] ignoring order of elements/)
mismatches*.path =~ ['$', '$.2']

where:

Expand Down
2 changes: 1 addition & 1 deletion core/model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
testImplementation "org.codehaus.groovy:groovy-json:${project.groovyVersion}"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation 'io.kotlintest:kotlintest-runner-junit5:3.4.2'
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testImplementation "junit:junit:${project.junitVersion}"
Expand Down
2 changes: 1 addition & 1 deletion core/pactbroker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies {
testImplementation "ch.qos.logback:logback-classic:${project.logbackVersion}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-json:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion core/support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit5Version}"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testImplementation "junit:junit:${project.junitVersion}"
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ scalaVersion=2.13.2
scalaTestVersion=3.1.2
slf4jVersion=1.7.32
specs2Version=4.9.4
spock=2.3-groovy-3.0
springboot=2.5.14
tika=1.28.5
2 changes: 1 addition & 1 deletion pact-jvm-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {

testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion pact-publish/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
testImplementation(project(":consumer"))
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testRuntimeOnly "ch.qos.logback:logback-classic:${project.logbackVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
}
Expand Down
2 changes: 1 addition & 1 deletion pact-specification-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-json:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testImplementation "org.apache.tika:tika-core:${project.tika}"
Expand Down
2 changes: 1 addition & 1 deletion provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation 'org.mockito:mockito-core:2.28.2'
testImplementation 'javax.xml.bind:jaxb-api:2.3.1'
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testImplementation 'org.hamcrest:hamcrest:2.2'
Expand Down
2 changes: 1 addition & 1 deletion provider/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
testImplementation "junit:junit:${project.junitVersion}"
testImplementation 'org.mockito:mockito-core:2.28.2'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
}
Expand Down
2 changes: 1 addition & 1 deletion provider/junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {

testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion provider/junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-json:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion provider/junit5spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
testImplementation "org.springframework.boot:spring-boot-starter-test:${project.springboot}"
testImplementation "org.springframework.boot:spring-boot-starter-web:${project.springboot}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
}
2 changes: 1 addition & 1 deletion provider/lein/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {

testImplementation 'org.clojure:tools.nrepl:0.2.13'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}

Expand Down
2 changes: 1 addition & 1 deletion provider/maven/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-nio:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down
2 changes: 1 addition & 1 deletion provider/spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: project.springboot
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation('org.spockframework:spock-core:2.0-groovy-3.0') {
testImplementation("org.spockframework:spock-core:${project.spock}") {
exclude group: 'org.codehaus.groovy'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:${project.bytebuddyVersion}"
Expand Down

0 comments on commit 4cf345f

Please sign in to comment.