Skip to content

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

Closed
@raphaelDL

Description

@raphaelDL

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions