Groovy upgrade to 4.0.17 with java 17 and spring boot 3.1.7 resulting in stack overflow issues

gradle.properties

springVersion=6.0.15
groovyVersion=4.0.17
spockVersion=2.4-M1-groovy-4.0
spockSpringVersion=2.4-M1-groovy-4.0
dbcpVersion=1.4
neo4j_Version=4.4.28
neo4j_apoc_version=4.4.0.22
springBootVersion=3.1.7

*****************************error logs below while builing *************

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':starling:compileGroovy'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
	at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:322)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:309)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:302)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:288)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:462)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: java.lang.StackOverflowError
******************


result = {StackOverflowError@21216} "java.lang.StackOverflowError"
 backtrace = null
 detailMessage = null
 cause = null
 stackTrace = {StackTraceElement[1024]@21225} 
  0 = {StackTraceElement@21227} "org.codehaus.groovy.ast.ClassNode.getText(ClassNode.java:1607)"
  1 = {StackTraceElement@21228} "org.codehaus.groovy.ast.ClassNode.hashCode(ClassNode.java:719)"
  2 = {StackTraceElement@21229} "java.base/java.util.HashMap.hash(HashMap.java:337)"
  3 = {StackTraceElement@21230} "java.base/java.util.HashMap.getNode(HashMap.java:567)"
  4 = {StackTraceElement@21231} "java.base/java.util.HashMap.containsKey(HashMap.java:593)"
  5 = {StackTraceElement@21232} "java.base/java.util.Collections$UnmodifiableMap.containsKey(Collections.java:1500)"
  6 = {StackTraceElement@21233} "org.codehaus.groovy.classgen.asm.util.TypeUtil.isPrimitiveType(TypeUtil.java:99)"
  7 = {StackTraceElement@21234} "org.codehaus.groovy.ast.ClassHelper.isPrimitiveType(ClassHelper.java:379)"
  8 = {StackTraceElement@21235} "org.codehaus.groovy.ast.ClassNode.getPlainNodeReference(ClassNode.java:1520)"
  9 = {StackTraceElement@21236} "org.codehaus.groovy.ast.ClassNode.getPlainNodeReference(ClassNode.java:1531)"
  10 = {StackTraceElement@21237} "org.codehaus.groovy.ast.tools.GenericsUtils.newClass(GenericsUtils.java:319)"
  11 = {StackTraceElement@21238} "org.codehaus.groovy.ast.tools.GenericsUtils.makeClassSafe0(GenericsUtils.java:333)"
  12 = {StackTraceElement@21239} "org.codehaus.groovy.ast.tools.GenericsUtils.makeClassSafeWithGenerics(GenericsUtils.java:353)"
  13 = {StackTraceElement@21240} "org.codehaus.groovy.ast.tools.GenericsUtils.correctToGenericsSpecRecurse(GenericsUtils.java:443)"
  14 = {StackTraceElement@21241} "org.codehaus.groovy.ast.tools.GenericsUtils.correctToGenericsSpecRecurse(GenericsUtils.java:372)"
  15 = {StackTraceElement@21242} "org.codehaus.groovy.ast.tools.GenericsUtils.extractSuperClassGenerics(GenericsUtils.java:562)"
  16 = {StackTraceElement@21243} "org.codehaus.groovy.ast.tools.GenericsUtils.parameterizeType(GenericsUtils.java:294)"
  17 = {StackTraceElement@21244} "org.codehaus.groovy.ast.tools.GeneralUtils.addAllInterfaces(GeneralUtils.java:479)"
  18 = {StackTraceElement@21245} "org.codehaus.groovy.ast.tools.GeneralUtils.addAllInterfaces(GeneralUtils.java:479)"
  19 = {StackTraceElement@21246} "org.codehaus.groovy.ast.tools.GeneralUtils.addAllInterfaces(GeneralUtils.java:479)"
  20 = {StackTraceElement@21247} "org.codehaus.groovy.ast.tools.GeneralUtils.getInterfacesAndSuperInterfaces(GeneralUtils.java:486)"
  21 = {StackTraceElement@21248} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:422)"
  22 = {StackTraceElement@21249} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:210)"
  23 = {StackTraceElement@21250} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  24 = {StackTraceElement@21251} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  25 = {StackTraceElement@21252} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  26 = {StackTraceElement@21253} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  27 = {StackTraceElement@21254} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  28 = {StackTraceElement@21255} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  29 = {StackTraceElement@21256} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  30 = {StackTraceElement@21257} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  31 = {StackTraceElement@21258} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  32 = {StackTraceElement@21259} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  33 = {StackTraceElement@21260} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  34 = {StackTraceElement@21261} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  35 = {StackTraceElement@21262} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  36 = {StackTraceElement@21263} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  37 = {StackTraceElement@21264} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  38 = {StackTraceElement@21265} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  39 = {StackTraceElement@21266} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  40 = {StackTraceElement@21267} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  41 = {StackTraceElement@21268} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  42 = {StackTraceElement@21269} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  43 = {StackTraceElement@21270} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  44 = {StackTraceElement@21271} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  45 = {StackTraceElement@21272} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  46 = {StackTraceElement@21273} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  47 = {StackTraceElement@21274} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  48 = {StackTraceElement@21275} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  49 = {StackTraceElement@21276} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  50 = {StackTraceElement@21277} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  51 = {StackTraceElement@21278} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  52 = {StackTraceElement@21279} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  53 = {StackTraceElement@21280} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  54 = {StackTraceElement@21281} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  55 = {StackTraceElement@21282} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  56 = {StackTraceElement@21283} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  57 = {StackTraceElement@21284} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  58 = {StackTraceElement@21285} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  59 = {StackTraceElement@21286} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  60 = {StackTraceElement@21287} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  61 = {StackTraceElement@21288} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  62 = {StackTraceElement@21289} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  63 = {StackTraceElement@21290} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  64 = {StackTraceElement@21291} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  65 = {StackTraceElement@21292} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  66 = {StackTraceElement@21293} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  67 = {StackTraceElement@21294} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  68 = {StackTraceElement@21295} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  69 = {StackTraceElement@21296} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  70 = {StackTraceElement@21297} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  71 = {StackTraceElement@21298} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  72 = {StackTraceElement@21299} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  73 = {StackTraceElement@21300} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  74 = {StackTraceElement@21301} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  75 = {StackTraceElement@21302} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  76 = {StackTraceElement@21303} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  77 = {StackTraceElement@21304} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  78 = {StackTraceElement@21305} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  79 = {StackTraceElement@21306} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  80 = {StackTraceElement@21307} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  81 = {StackTraceElement@21308} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  82 = {StackTraceElement@21309} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  83 = {StackTraceElement@21310} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  84 = {StackTraceElement@21311} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  85 = {StackTraceElement@21312} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  86 = {StackTraceElement@21313} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  87 = {StackTraceElement@21314} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  88 = {StackTraceElement@21315} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  89 = {StackTraceElement@21316} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  90 = {StackTraceElement@21317} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  91 = {StackTraceElement@21318} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  92 = {StackTraceElement@21319} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  93 = {StackTraceElement@21320} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  94 = {StackTraceElement@21321} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  95 = {StackTraceElement@21322} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  96 = {StackTraceElement@21323} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  97 = {StackTraceElement@21324} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  98 = {StackTraceElement@21325} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  99 = {StackTraceElement@21326} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  100 = {StackTraceElement@21427} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  101 = {StackTraceElement@21428} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  102 = {StackTraceElement@21429} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  103 = {StackTraceElement@21430} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  104 = {StackTraceElement@21431} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  105 = {StackTraceElement@21432} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  106 = {StackTraceElement@21433} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  107 = {StackTraceElement@21434} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  108 = {StackTraceElement@21435} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  109 = {StackTraceElement@21436} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  110 = {StackTraceElement@21437} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  111 = {StackTraceElement@21438} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  112 = {StackTraceElement@21439} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  113 = {StackTraceElement@21440} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  114 = {StackTraceElement@21441} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  115 = {StackTraceElement@21442} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  116 = {StackTraceElement@21443} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  117 = {StackTraceElement@21444} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  118 = {StackTraceElement@21445} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  119 = {StackTraceElement@21446} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  120 = {StackTraceElement@21447} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  121 = {StackTraceElement@21448} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  122 = {StackTraceElement@21449} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  123 = {StackTraceElement@21450} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  124 = {StackTraceElement@21451} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  125 = {StackTraceElement@21452} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  126 = {StackTraceElement@21453} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  127 = {StackTraceElement@21454} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  128 = {StackTraceElement@21455} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  129 = {StackTraceElement@21456} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  130 = {StackTraceElement@21457} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  131 = {StackTraceElement@21458} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  132 = {StackTraceElement@21459} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  133 = {StackTraceElement@21460} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  134 = {StackTraceElement@21461} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  135 = {StackTraceElement@21462} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  136 = {StackTraceElement@21463} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  137 = {StackTraceElement@21464} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  138 = {StackTraceElement@21465} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  139 = {StackTraceElement@21466} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  140 = {StackTraceElement@21467} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  141 = {StackTraceElement@21468} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  142 = {StackTraceElement@21469} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  143 = {StackTraceElement@21470} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  144 = {StackTraceElement@21471} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  145 = {StackTraceElement@21472} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  146 = {StackTraceElement@21473} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  147 = {StackTraceElement@21474} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  148 = {StackTraceElement@21475} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  149 = {StackTraceElement@21476} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  150 = {StackTraceElement@21477} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  151 = {StackTraceElement@21478} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  152 = {StackTraceElement@21479} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  153 = {StackTraceElement@21480} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  154 = {StackTraceElement@21481} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  155 = {StackTraceElement@21482} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  156 = {StackTraceElement@21483} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  157 = {StackTraceElement@21484} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  158 = {StackTraceElement@21485} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  159 = {StackTraceElement@21486} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  160 = {StackTraceElement@21487} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  161 = {StackTraceElement@21488} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  162 = {StackTraceElement@21489} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  163 = {StackTraceElement@21490} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  164 = {StackTraceElement@21491} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  165 = {StackTraceElement@21492} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  166 = {StackTraceElement@21493} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  167 = {StackTraceElement@21494} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  168 = {StackTraceElement@21495} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  169 = {StackTraceElement@21496} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  170 = {StackTraceElement@21497} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  171 = {StackTraceElement@21498} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  172 = {StackTraceElement@21499} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  173 = {StackTraceElement@21500} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  174 = {StackTraceElement@21501} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  175 = {StackTraceElement@21502} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  176 = {StackTraceElement@21503} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  177 = {StackTraceElement@21504} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  178 = {StackTraceElement@21505} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  179 = {StackTraceElement@21506} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  180 = {StackTraceElement@21507} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  181 = {StackTraceElement@21508} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  182 = {StackTraceElement@21509} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  183 = {StackTraceElement@21510} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  184 = {StackTraceElement@21511} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  185 = {StackTraceElement@21512} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  186 = {StackTraceElement@21513} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  187 = {StackTraceElement@21514} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  188 = {StackTraceElement@21515} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  189 = {StackTraceElement@21516} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  190 = {StackTraceElement@21517} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  191 = {StackTraceElement@21518} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  192 = {StackTraceElement@21519} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  193 = {StackTraceElement@21520} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  194 = {StackTraceElement@21521} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  195 = {StackTraceElement@21522} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  196 = {StackTraceElement@21523} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  197 = {StackTraceElement@21524} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  198 = {StackTraceElement@21525} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  199 = {StackTraceElement@21526} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  200 = {StackTraceElement@21627} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  201 = {StackTraceElement@21628} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  202 = {StackTraceElement@21629} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  203 = {StackTraceElement@21630} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"

What’s the bottom of the stacktrace?
Your output shows that there are 1024 elements in the stacktrace, but you only shared 203 of them.
Can you maybe show an MCVE?

stack trace from end :

809 = {StackTraceElement@22836} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  810 = {StackTraceElement@22837} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  811 = {StackTraceElement@22838} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  812 = {StackTraceElement@22839} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  813 = {StackTraceElement@22840} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  814 = {StackTraceElement@22841} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  815 = {StackTraceElement@22842} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  816 = {StackTraceElement@22843} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  817 = {StackTraceElement@22844} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  818 = {StackTraceElement@22845} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  819 = {StackTraceElement@22846} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  820 = {StackTraceElement@22847} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  821 = {StackTraceElement@22848} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  822 = {StackTraceElement@22849} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  823 = {StackTraceElement@22850} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  824 = {StackTraceElement@22851} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  825 = {StackTraceElement@22852} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  826 = {StackTraceElement@22853} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  827 = {StackTraceElement@22854} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  828 = {StackTraceElement@22855} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  829 = {StackTraceElement@22856} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  830 = {StackTraceElement@22857} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  831 = {StackTraceElement@22858} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  832 = {StackTraceElement@22859} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  833 = {StackTraceElement@22860} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  834 = {StackTraceElement@22861} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  835 = {StackTraceElement@22862} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  836 = {StackTraceElement@22863} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  837 = {StackTraceElement@22864} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  838 = {StackTraceElement@22865} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  839 = {StackTraceElement@22866} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  840 = {StackTraceElement@22867} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  841 = {StackTraceElement@22868} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  842 = {StackTraceElement@22869} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  843 = {StackTraceElement@22870} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  844 = {StackTraceElement@22871} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  845 = {StackTraceElement@22872} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  846 = {StackTraceElement@22873} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  847 = {StackTraceElement@22874} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  848 = {StackTraceElement@22875} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  849 = {StackTraceElement@22876} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  850 = {StackTraceElement@22877} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  851 = {StackTraceElement@22878} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  852 = {StackTraceElement@22879} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  853 = {StackTraceElement@22880} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  854 = {StackTraceElement@22881} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  855 = {StackTraceElement@22882} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  856 = {StackTraceElement@22883} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  857 = {StackTraceElement@22884} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  858 = {StackTraceElement@22885} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  859 = {StackTraceElement@22886} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  860 = {StackTraceElement@22887} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  861 = {StackTraceElement@22888} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  862 = {StackTraceElement@22889} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  863 = {StackTraceElement@22890} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  864 = {StackTraceElement@22891} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  865 = {StackTraceElement@22892} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  866 = {StackTraceElement@22893} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  867 = {StackTraceElement@22894} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  868 = {StackTraceElement@22895} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  869 = {StackTraceElement@22896} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  870 = {StackTraceElement@22897} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  871 = {StackTraceElement@22898} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  872 = {StackTraceElement@22899} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  873 = {StackTraceElement@22900} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  874 = {StackTraceElement@22901} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  875 = {StackTraceElement@22902} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  876 = {StackTraceElement@22903} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  877 = {StackTraceElement@22904} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  878 = {StackTraceElement@22905} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  879 = {StackTraceElement@22906} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  880 = {StackTraceElement@22907} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  881 = {StackTraceElement@22908} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  882 = {StackTraceElement@22909} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  883 = {StackTraceElement@22910} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  884 = {StackTraceElement@22911} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  885 = {StackTraceElement@22912} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  886 = {StackTraceElement@22913} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  887 = {StackTraceElement@22914} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  888 = {StackTraceElement@22915} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  889 = {StackTraceElement@22916} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  890 = {StackTraceElement@22917} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  891 = {StackTraceElement@22918} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  892 = {StackTraceElement@22919} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  893 = {StackTraceElement@22920} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  894 = {StackTraceElement@22921} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  895 = {StackTraceElement@22922} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  896 = {StackTraceElement@22923} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  897 = {StackTraceElement@22924} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  898 = {StackTraceElement@22925} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  899 = {StackTraceElement@22926} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  900 = {StackTraceElement@23027} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  901 = {StackTraceElement@23028} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  902 = {StackTraceElement@23029} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  903 = {StackTraceElement@23030} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  904 = {StackTraceElement@23031} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  905 = {StackTraceElement@23032} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  906 = {StackTraceElement@23033} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  907 = {StackTraceElement@23034} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  908 = {StackTraceElement@23035} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  909 = {StackTraceElement@23036} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  910 = {StackTraceElement@23037} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  911 = {StackTraceElement@23038} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  912 = {StackTraceElement@23039} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  913 = {StackTraceElement@23040} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  914 = {StackTraceElement@23041} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  915 = {StackTraceElement@23042} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  916 = {StackTraceElement@23043} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  917 = {StackTraceElement@23044} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  918 = {StackTraceElement@23045} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  919 = {StackTraceElement@23046} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  920 = {StackTraceElement@23047} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  921 = {StackTraceElement@23048} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  922 = {StackTraceElement@23049} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  923 = {StackTraceElement@23050} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  924 = {StackTraceElement@23051} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  925 = {StackTraceElement@23052} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  926 = {StackTraceElement@23053} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  927 = {StackTraceElement@23054} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  928 = {StackTraceElement@23055} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  929 = {StackTraceElement@23056} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  930 = {StackTraceElement@23057} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  931 = {StackTraceElement@23058} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  932 = {StackTraceElement@23059} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  933 = {StackTraceElement@23060} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  934 = {StackTraceElement@23061} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  935 = {StackTraceElement@23062} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  936 = {StackTraceElement@23063} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  937 = {StackTraceElement@23064} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  938 = {StackTraceElement@23065} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  939 = {StackTraceElement@23066} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  940 = {StackTraceElement@23067} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  941 = {StackTraceElement@23068} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  942 = {StackTraceElement@23069} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  943 = {StackTraceElement@23070} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  944 = {StackTraceElement@23071} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  945 = {StackTraceElement@23072} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  946 = {StackTraceElement@23073} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  947 = {StackTraceElement@23074} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  948 = {StackTraceElement@23075} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  949 = {StackTraceElement@23076} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  950 = {StackTraceElement@23077} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  951 = {StackTraceElement@23078} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  952 = {StackTraceElement@23079} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  953 = {StackTraceElement@23080} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  954 = {StackTraceElement@23081} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  955 = {StackTraceElement@23082} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  956 = {StackTraceElement@23083} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  957 = {StackTraceElement@23084} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  958 = {StackTraceElement@23085} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  959 = {StackTraceElement@23086} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  960 = {StackTraceElement@23087} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  961 = {StackTraceElement@23088} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  962 = {StackTraceElement@23089} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  963 = {StackTraceElement@23090} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  964 = {StackTraceElement@23091} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  965 = {StackTraceElement@23092} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  966 = {StackTraceElement@23093} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  967 = {StackTraceElement@23094} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  968 = {StackTraceElement@23095} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  969 = {StackTraceElement@23096} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  970 = {StackTraceElement@23097} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  971 = {StackTraceElement@23098} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  972 = {StackTraceElement@23099} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  973 = {StackTraceElement@23100} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  974 = {StackTraceElement@23101} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  975 = {StackTraceElement@23102} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  976 = {StackTraceElement@23103} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  977 = {StackTraceElement@23104} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  978 = {StackTraceElement@23105} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  979 = {StackTraceElement@23106} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  980 = {StackTraceElement@23107} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  981 = {StackTraceElement@23108} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  982 = {StackTraceElement@23109} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  983 = {StackTraceElement@23110} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  984 = {StackTraceElement@23111} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  985 = {StackTraceElement@23112} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  986 = {StackTraceElement@23113} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  987 = {StackTraceElement@23114} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  988 = {StackTraceElement@23115} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  989 = {StackTraceElement@23116} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  990 = {StackTraceElement@23117} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  991 = {StackTraceElement@23118} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  992 = {StackTraceElement@23119} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  993 = {StackTraceElement@23120} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  994 = {StackTraceElement@23121} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  995 = {StackTraceElement@23122} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  996 = {StackTraceElement@23123} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  997 = {StackTraceElement@23124} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  998 = {StackTraceElement@23125} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  999 = {StackTraceElement@23126} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1000 = {StackTraceElement@23227} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1001 = {StackTraceElement@23228} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1002 = {StackTraceElement@23229} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1003 = {StackTraceElement@23230} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1004 = {StackTraceElement@23231} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1005 = {StackTraceElement@23232} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1006 = {StackTraceElement@23233} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1007 = {StackTraceElement@23234} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1008 = {StackTraceElement@23235} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1009 = {StackTraceElement@23236} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1010 = {StackTraceElement@23237} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1011 = {StackTraceElement@23238} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1012 = {StackTraceElement@23239} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1013 = {StackTraceElement@23240} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1014 = {StackTraceElement@23241} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1015 = {StackTraceElement@23242} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1016 = {StackTraceElement@23243} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1017 = {StackTraceElement@23244} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1018 = {StackTraceElement@23245} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1019 = {StackTraceElement@23246} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1020 = {StackTraceElement@23247} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1021 = {StackTraceElement@23248} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
  1022 = {StackTraceElement@23249} "org.codehaus.groovy.ast.tools.WideningCategories.lowestUpperBound(WideningCategories.java:238)"
  1023 = {StackTraceElement@23250} "org.codehaus.groovy.ast.tools.WideningCategories.parameterizeLowestUpperBound(WideningCategories.java:276)"
 depth = 0
 suppressedExceptions = null

Hm, very strange, I would have expected a difference in the bottom of the stack trace.

But either way, this is most probably not a Gradle issue.

Still an MCVE would be helpful.