Class BaselineClassUniquenessPlugin

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, org.gradle.api.Plugin<org.gradle.api.Project>

    public class BaselineClassUniquenessPlugin
    extends com.palantir.baseline.plugins.AbstractBaselinePlugin
    This plugin is similar to https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Duplicate-Classes-Rule but goes one step further and actually hashes any identically named classfiles to figure out if they're completely identical (and therefore safely interchangeable).

    The task only fails if it finds classes which have the same name but different implementations.

    • Field Summary

      • Fields inherited from class com.palantir.baseline.plugins.AbstractBaselinePlugin

        project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.gradle.api.Project project)  
      • Methods inherited from class com.palantir.baseline.plugins.AbstractBaselinePlugin

        getConfigDir, getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
      • Methods inherited from class java.lang.Object

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

      • BaselineClassUniquenessPlugin

        public BaselineClassUniquenessPlugin()
    • Method Detail

      • apply

        public final void apply​(org.gradle.api.Project project)