Class 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 to SpotBugsPlugin because 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.gradle.api.Project project)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomSpotBugsPlugin

        public CustomSpotBugsPlugin()
    • Method Detail

      • apply

        public void apply​(org.gradle.api.Project project)
        Specified by:
        apply in interface org.gradle.api.Plugin<org.gradle.api.Project>