Skip to content

Commit ee8c635

Browse files
committed
Upgrade to Groovy 3.0.17
Closes gh-35468
1 parent 18c27f9 commit ee8c635

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
@@ -370,7 +370,7 @@ bom {
370370
]
371371
}
372372
}
373-
library("Groovy", "3.0.10") {
373+
library("Groovy", "3.0.17") {
374374
group("org.codehaus.groovy") {
375375
imports = [
376376
"groovy-bom"

0 commit comments

Comments
 (0)