|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.plugins.PluginContainerorg.gradle.api.plugins.PluginCollection
org.gradle.api.DomainObjectCollection
org.gradle.api.plugins.ProjectPluginsContainer
interface ProjectPluginsContainer extends PluginContainer
A ProjectPluginsContainer is used by a project to use plugins against the project and manage the plugins that have been used. Plugins can be specified by id or type. The id of a plugin is specified in the plugin.properties file in GRADLE_HOME. Only the plugin specified there have an id. The name of a plugin is either its id. In the case a plugin does not has an id, its name is the fully qualified class name.
Method Summary | |
---|---|
Plugin
|
getPlugin(java.lang.String id)
Returns a plugin with the specified id if this plugin has been used in the project. |
Plugin
|
getPlugin(java.lang.Class type)
Returns a plugin with the specified type if this plugin has been used in the project. |
Plugin
|
usePlugin(java.lang.String id, Project project)
Has the same behavior as { is specified via its id. |
T
|
usePlugin(java.lang.Class type, Project project)
Uses a plugin against a particular project. |
Methods inherited from interface PluginContainer | |
---|---|
findPlugin, findPlugin, hasPlugin, hasPlugin |
Methods inherited from interface PluginCollection | |
---|---|
allPlugins, allPlugins, getAt, getByName, matching, whenPluginAdded, whenPluginAdded, withType |
Methods inherited from interface DomainObjectCollection | |
---|---|
allObjects, allObjects, findAll, findByName, getAll, getAsMap, getAt, getByName, getByName, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType |
Methods inherited from interface java.lang.Iterable | |
---|---|
iterator |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Method Detail |
---|
public Plugin getPlugin(java.lang.String id)
public Plugin getPlugin(java.lang.Class type)
public Plugin usePlugin(java.lang.String id, Project project)
public T usePlugin(java.lang.Class type, Project project)
Groovy Documentation