Class AbstractBaselinePlugin

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, org.gradle.api.Plugin<org.gradle.api.Project>
    Direct Known Subclasses:
    BaselineCheckstyle, BaselineClassUniquenessPlugin, BaselineReleaseCompatibility, BaselineScala

    public abstract class AbstractBaselinePlugin
    extends groovy.lang.GroovyObjectSupport
    implements org.gradle.api.Plugin<org.gradle.api.Project>
    The super class of all Baseline plugins. Note that we need to extend GroovyObjectSupport to still support projects using Gradle 6 and thus Groovy 2.x because Baseline is now using Gradle 7 and thus Groovy 3.x. Otherwise, Groovy plugins (i.e. BaselineIdea) fail when setting properties. For more info, see https://github.com/palantir/gradle-baseline/pull/1884.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.gradle.api.Project project
      The Project that this plugin has been applied to; must be set in the PluginAware.apply(groovy.lang.Closure) method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getConfigDir()
      Returns the absolute path of the Baseline configuration, i.e., the directory '.baseline' in the root directory of this project.
      • Methods inherited from class groovy.lang.GroovyObjectSupport

        getMetaClass, setMetaClass
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface groovy.lang.GroovyObject

        getProperty, invokeMethod, setProperty
      • Methods inherited from interface org.gradle.api.Plugin

        apply
    • Field Detail

      • project

        protected org.gradle.api.Project project
        The Project that this plugin has been applied to; must be set in the PluginAware.apply(groovy.lang.Closure) method.
    • Constructor Detail

      • AbstractBaselinePlugin

        public AbstractBaselinePlugin()
    • Method Detail

      • getConfigDir

        protected final java.lang.String getConfigDir()
        Returns the absolute path of the Baseline configuration, i.e., the directory '.baseline' in the root directory of this project.