Skip to content

Replace deprecated Gradle Task.deleteAllActions() method in AspectJPlugin.groovy #6128

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

Closed
raphaelDL opened this issue Nov 23, 2018 · 0 comments
Assignees
Labels
in: build An issue in the build type: enhancement A general enhancement
Milestone

Comments

@raphaelDL
Copy link
Contributor

buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy
uses
javaCompileTask.deleteAllActions()
but this method is deprecated, this gives us a warning message when executing gradlew tasks.
We should now replace it so it won't give us future issues.

One approach can be:
javaCompileTask.setActions Arrays.asList()

If we want to delete all actions, we can use the setActions method and pass an empty list

raphaelDL added a commit to raphaelDL/spring-security that referenced this issue Nov 23, 2018
This commit ensures that the method Task.deleteAllActions is not used

Fixes: spring-projectsgh-6128
@jgrandja jgrandja self-assigned this Nov 23, 2018
@jgrandja jgrandja added in: build An issue in the build type: enhancement A general enhancement labels Nov 23, 2018
@jgrandja jgrandja added this to the 5.2.0.M1 milestone Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants