Skip to content

Removing build.gradle configuration along with plugin #5722

Answered by timtebeek
nspyke asked this question in Q&A
Discussion options

You must be logged in to vote

hi @nspyke ; Indeed that recipe does not remove any associated configuration just yet, as I don't think we have a clear link between those two. It should be fairly straightforward to write a recipe to remove the config as well; that's mapped as a method invocation, so could be removed with for instance this recipe:

public class RemoveMethodInvocations extends Recipe {
@Option(displayName = "Method pattern",
description = "A pattern to match method invocations for removal. " + MethodMatcher.METHOD_PATTERN_DESCRIPTION,
example = "java.lang.StringBuilder a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nspyke
Comment options

@timtebeek
Comment options

Answer selected by nspyke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants