Package com.diffplug.gradle
Class ProjectPlugin
- java.lang.Object
-
- com.diffplug.gradle.ProjectPlugin
-
- Direct Known Subclasses:
AsMavenPlugin
,BndManifestPlugin
,BuildPropertiesPlugin
,EquinoxLaunchPlugin
,ExcludeBuildFolderPlugin
,MavenCentralPlugin
,NativeDepsPlugin
,OomphIdePlugin
,ProjectDepsPlugin
,ResourceFiltersPlugin
public abstract class ProjectPlugin extends Object implements Plugin<Project>
Base implementation of a Plugin which prevents double-application.
-
-
Constructor Summary
Constructors Constructor Description ProjectPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
apply(Project project)
protected abstract void
applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.static <T extends Plugin<?>>
TgetPlugin(Project project, Class<T> pluginClazz)
Deprecated.static com.diffplug.common.tree.TreeDef.Parented<Project>
treeDef()
A TreeDef for projects.
-
-
-
Method Detail
-
applyOnce
protected abstract void applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.
-
getPlugin
@Deprecated public static <T extends Plugin<?>> T getPlugin(Project project, Class<T> pluginClazz)
Deprecated.Returns the instance of the given plugin, by returning the existing or applying brand new, as appropriate.
-
treeDef
public static com.diffplug.common.tree.TreeDef.Parented<Project> treeDef()
A TreeDef for projects.
-
-