From aaa075cfead5cf92af51d2d59e4a2bb0f61f113b Mon Sep 17 00:00:00 2001 From: Sandesh <30489233+j-sandy@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:15:08 +0530 Subject: [PATCH] chore(dependency): add testImplementation of groovy-json dependency while 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. --- igor-web/igor-web.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/igor-web/igor-web.gradle b/igor-web/igor-web.gradle index 9e50d1077..98c7492d9 100644 --- a/igor-web/igor-web.gradle +++ b/igor-web/igor-web.gradle @@ -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"