Skip to content

Commit

Permalink
chore(dependency): add testImplementation of groovy-json dependency w…
Browse files Browse the repository at this point in the history
…hile upgrading to groovy 3.x (#1172)

While upgrading groovy from 2.5.15 to 3.0.10, encountered following error during igor-web:test :
```
> Task :igor-web:compileTestGroovy
startup failed:
/igor/igor-web/src/test/groovy/com/netflix/spinnaker/igor/build/InfoControllerSpec.groovy: 32: unable to resolve class groovy.json.JsonSlurper
 @ line 32, column 1.
   import groovy.json.JsonSlurper
   ^
1 error
> Task :igor-web:compileTestGroovy FAILED
```
To resolve this issue added testImplementation of org.codehaus.groovy:groovy-json in igor-web.gradle.
  • Loading branch information
j-sandy committed Sep 21, 2023
1 parent bd93ceb commit aaa075c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions igor-web/igor-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ dependencies {
testImplementation "com.squareup.okhttp:mockwebserver"
testImplementation "io.spinnaker.kork:kork-jedis-test"
testImplementation "org.codehaus.groovy:groovy-datetime"
testImplementation "org.codehaus.groovy:groovy-json"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.assertj:assertj-core"

Expand Down

0 comments on commit aaa075c

Please sign in to comment.