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
FieldsModifier and TypeFieldDescriptionprotected org.gradle.api.ProjectTheProjectthat this plugin has been applied to; must be set in thePluginAware.apply(Closure)method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringReturns 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, setMetaClassMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setPropertyMethods inherited from interface org.gradle.api.Plugin
apply
-
Field Details
-
project
protected org.gradle.api.Project projectTheProjectthat this plugin has been applied to; must be set in thePluginAware.apply(Closure)method.
-
-
Constructor Details
-
AbstractBaselinePlugin
public AbstractBaselinePlugin()
-
-
Method Details
-
getConfigDir
Returns the absolute path of the Baseline configuration, i.e., the directory '.baseline' in the root directory of this project.
-