Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to avoid deprecation warnings with Gradle 8.12 #43496

Open
wilkinsona opened this issue Dec 13, 2024 · 0 comments
Open

Update tests to avoid deprecation warnings with Gradle 8.12 #43496

wilkinsona opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
type: task A general task
Milestone

Comments

@wilkinsona
Copy link
Member

wilkinsona commented Dec 13, 2024

Running spring-boot-gradle-plugin's tests with Gradle 8.12-rc-1 results in a number of deprecation warnings that cause the tests to fail. For example:

Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('url = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12-rc-1/userguide/upgrading_version_8.html#groovy_space_assignment_syntax	
	at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator.logGroovySpaceAssignmentDeprecation(AsmBackedClassGenerator.java:262)	
	at org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated.url(Unknown Source)	
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)	
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)	
	at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:38)	
	at build_8dj7u9xsyqvh3vf3vgxwhmcpe$_run_closure2$_closure12.doCall$original(/private/var/folders/2w/mhq2nt4d0xx2w6w4c36n468h0000gn/T/gradle-4424519662978718210/build.gradle:30)

This particular warning in caused by this:

There are several others.

We should update the tests to avoid these warnings, ideally in a way that retains compatibility with Gradle 7.6.x to avoid having to have the tests use different build scripts for different versions of Gradle.

@wilkinsona wilkinsona added the type: task A general task label Dec 13, 2024
@wilkinsona wilkinsona added this to the 3.3.x milestone Dec 13, 2024
@wilkinsona wilkinsona self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant