Class CustomSpotBugsPlugin
- java.lang.Object
-
- ru.vyarus.gradle.plugin.quality.spotbugs.CustomSpotBugsPlugin
-
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class CustomSpotBugsPlugin extends java.lang.Object implements org.gradle.api.Plugin<org.gradle.api.Project>Plugin used as a replacement toSpotBugsPluginbecause original plugin assigns ALL spotbugs tasks to check which is wrong! Removing existing task dependencies is error prone and it's better to just create new plugin.NOTE: main spotbugs functionality is inside spotbugs-main plugin and this plugin IS USED. Moreover, if this base plugin is already applied, then custom plugin would not be applied to avoid duplicate spotbugs activation.
It is JAVA class because groovy class is impossible to compile, thanks to android plugin dependency.
- Since:
- 09.05.2020
-
-
Constructor Summary
Constructors Constructor Description CustomSpotBugsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(org.gradle.api.Project project)
-