Class AbstractBaselinePlugin

java.lang.Object
groovy.lang.GroovyObjectSupport
com.palantir.baseline.plugins.AbstractBaselinePlugin
All Implemented Interfaces:
groovy.lang.GroovyObject, org.gradle.api.Plugin<org.gradle.api.Project>
Direct Known Subclasses:
BaselineCheckstyle, BaselineClassUniquenessPlugin, 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
    The Project that this plugin has been applied to; must be set in the PluginAware.apply(Closure) method.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final String
    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 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 Details

    • project

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

    • AbstractBaselinePlugin

      public AbstractBaselinePlugin()
  • Method Details

    • getConfigDir

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