From 35345fe7a2fb12fb2a03ab9420368b968edf0783 Mon Sep 17 00:00:00 2001 From: Tim Yates Date: Fri, 14 Oct 2022 11:58:54 +0100 Subject: [PATCH] Switch to byte buddy We had issues with Groovy 4, cgilib, Spock and Java 17 https://github.com/micronaut-projects/micronaut-kubernetes/pull/510\#issuecomment-1278775288 This pr switches cgilib to byte buddy, as cgilib is no longer maintained --- .../io/micronaut/build/MicronautBuildCommonPlugin.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/io/micronaut/build/MicronautBuildCommonPlugin.groovy b/src/main/groovy/io/micronaut/build/MicronautBuildCommonPlugin.groovy index 78d8d93d..1d877c91 100644 --- a/src/main/groovy/io/micronaut/build/MicronautBuildCommonPlugin.groovy +++ b/src/main/groovy/io/micronaut/build/MicronautBuildCommonPlugin.groovy @@ -38,7 +38,7 @@ class MicronautBuildCommonPlugin implements Plugin { 'org.codehaus.groovy' : 'org.apache.groovy' } - def cgLibVersionProvider = versionProviderOrDefault(project, 'cglib', '3.3.0') + def byteBuddyVersionProvider = versionProviderOrDefault(project, 'bytebuddy', '1.12.18') def objenesisVersionProvider = versionProviderOrDefault(project, 'objenesis', '3.1') def logbackVersionProvider = versionProviderOrDefault(project, 'logback', '1.2.3') @@ -82,8 +82,8 @@ class MicronautBuildCommonPlugin implements Plugin { dependencies.addProvider("testImplementation",groovyGroupProvider.zip(groovyVersionProvider) { groovyGroup, groovyVersion -> "$groovyGroup:groovy-test:$groovyVersion" }) - dependencies.addProvider("testImplementation", cgLibVersionProvider.map { - "cglib:cglib-nodep:$it" + dependencies.addProvider("testImplementation", byteBuddyVersionProvider.map { + "net.bytebuddy:byte-buddy:$it" }) dependencies.addProvider("testImplementation", objenesisVersionProvider.map { "org.objenesis:objenesis:$it"