From 5ca560a444a4d20b916a28c5d48d3b39120db008 Mon Sep 17 00:00:00 2001 From: j-sandy <30489233+j-sandy@users.noreply.github.com> Date: Tue, 19 Sep 2023 17:06:17 +0530 Subject: [PATCH] chore(dependency): add testImplementation of groovy-json dependency while upgrading to groovy 3.x 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 d0289706f..3b9911f82 100644 --- a/igor-web/igor-web.gradle +++ b/igor-web/igor-web.gradle @@ -92,6 +92,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"