Package com.palantir.baseline.plugins
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,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 extendGroovyObjectSupportto 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.ProjectprojectTheProjectthat this plugin has been applied to; must be set in thePluginAware.apply(groovy.lang.Closure)method.
-
Constructor Summary
Constructors Constructor Description AbstractBaselinePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetConfigDir()Returns the absolute path of the Baseline configuration, i.e., the directory '.baseline' in the root directory of this project.
-