Skip to content

Commit 4a807eb

Browse files
committed
Upgrade to Groovy 3.0.12
Closes gh-32008
1 parent 2f85ea3 commit 4a807eb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/ResolveDependencyCoordinatesTransformationTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,8 @@
3737
import org.codehaus.groovy.ast.stmt.ExpressionStatement;
3838
import org.codehaus.groovy.control.SourceUnit;
3939
import org.codehaus.groovy.control.io.ReaderSource;
40+
import org.codehaus.groovy.syntax.Token;
41+
import org.codehaus.groovy.syntax.Types;
4042
import org.codehaus.groovy.transform.ASTTransformation;
4143
import org.junit.jupiter.api.BeforeEach;
4244
import org.junit.jupiter.api.Test;
@@ -195,8 +197,8 @@ void transformationOfAnnotationOnLocalVariable() {
195197
ClassNode classNode = new ClassNode("Test", 0, new ClassNode(Object.class));
196198
this.moduleNode.addClass(classNode);
197199

198-
DeclarationExpression declarationExpression = new DeclarationExpression(new VariableExpression("test"), null,
199-
new ConstantExpression("test"));
200+
DeclarationExpression declarationExpression = new DeclarationExpression(new VariableExpression("test"),
201+
new Token(Types.ASSIGN, "=", 1, 1), new ConstantExpression("test"));
200202
declarationExpression.addAnnotation(this.grabAnnotation);
201203

202204
BlockStatement code = new BlockStatement(Arrays.asList(new ExpressionStatement(declarationExpression)),

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ bom {
380380
]
381381
}
382382
}
383-
library("Groovy", "3.0.11") {
383+
library("Groovy", "3.0.12") {
384384
group("org.codehaus.groovy") {
385385
imports = [
386386
"groovy-bom"

0 commit comments

Comments
 (0)