Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ repositories {
dependencies {
implementation "com.graphql-java:graphql-java:21.3"

testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
testImplementation('org.codehaus.groovy:groovy:2.5.13')
testImplementation "org.spockframework:spock-core:2.3-groovy-3.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spock and Groovy have to be updated simultaneously

testImplementation "org.codehaus.groovy:groovy:3.0.20"
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand All @@ -63,6 +63,7 @@ artifacts {
}

test {
useJUnitPlatform()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key change from Spock 1.x to 2.x is using JUnit, so I had to add this line

Documentation: https://spockframework.org/spock/docs/2.0/migration_guide.html#_migration_guide_2_0

testLogging {
exceptionFormat = 'full'
}
Expand Down