This message was deleted.
# plugin-development
s
This message was deleted.
s
Could you describe what you were using the filters for?
m
We're currently using the filters to skip a set of tasks by default where we found it difficult to remove these tasks from the task graph before. Specifically, it's for Spotbugs -- those tasks are slow, and we don't care to run those tasks or their dependencies about 99% of the time. It's been a long time since I looked at this, but from what I can tell it looks like the task graph
useFilter
options are equivalent to the
-x
option and
ExcludedTaskFilteringBuildConfigurationAction
? I looked into adding a new build configuration action, but it doesn't look like that's well supported. Would the best option be to just add to the
StartParameter#excludedTaskNames
collection?
s
If you don't want to run those tasks, you can just disable them:
Copy code
tasks.withType(SpotBugs).configureEach { spotbugs -> 
   spotbugs.enabled = false 
}
That could be based on some other state, e.g., you only disable it when you're running a particular task or a particular project property is defined.