|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectPluginsContainer
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.Class<? extends Plugin> type)
Returns a plugin with the specified type if this plugin has been used in the project. |
|
Plugin |
getPlugin(java.lang.String id)
Returns a plugin with the specified id if this plugin has been used in the project. |
|
|
usePlugin(java.lang.Class<T> type,
Project project)
Uses a plugin against a particular project. |
|
Plugin |
usePlugin(java.lang.String id,
Project project)
Has the same behavior as usePlugin(Class, org.gradle.api.Project) except that the the plugin
is specified via its id. |
Methods inherited from interface org.gradle.api.plugins.PluginContainer |
---|
findPlugin, findPlugin, hasPlugin, hasPlugin |
Methods inherited from interface org.gradle.api.plugins.PluginCollection |
---|
allPlugins, allPlugins, getAt, getByName, matching, whenPluginAdded, whenPluginAdded, withType |
Methods inherited from interface org.gradle.api.DomainObjectContainer |
---|
addRule, getRules |
Methods inherited from interface org.gradle.api.DomainObjectCollection |
---|
allObjects, allObjects, findAll, findByName, getAll, getAsMap, getByName, whenObjectAdded, whenObjectAdded, whenObjectRemoved |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
Plugin usePlugin(java.lang.String id, Project project)
usePlugin(Class, org.gradle.api.Project)
except that the the plugin
is specified via its id. Not all plugins have an id.
id
- The id of the plugin to be usedproject
- The project against the plugin should be used
<T extends Plugin> T usePlugin(java.lang.Class<T> type, Project project)
type
- The type of the plugin to be usedproject
- The project against the plugin should be used
Plugin getPlugin(java.lang.String id)
id
- The id of the pluginPlugin getPlugin(java.lang.Class<? extends Plugin> type)
type
- The type of the plugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |