Interface AppliedPlugin
Currently just provides information about the ID of the plugin.
- Since:
- 2.3
- See Also:
-
Method Summary
-
Method Details
-
getId
String getId()The ID of the plugin.An example of a plugin ID would be
"org.gradle.java". This method returns the ID that was used to look up the plugin, for example withPluginManager.findPlugin(String)orPluginManager.withPlugin(String, org.gradle.api.Action). Core plugins can be looked up by name, so for the plugin with ID"org.gradle.java", looking it up with"java"returns"java".- Returns:
- the ID of the plugin
- Since:
- 2.3
-
getNamespace
@Nullable String getNamespace()The namespace of the plugin.An example of a plugin namespace would be
"org.gradle"for the plugin with ID"org.gradle.java".If the plugin was looked up by an unqualified ID, such as
"java", this method returnsnull.- Returns:
- the namespace of the plugin
- Since:
- 2.3
-
getName
String getName()The name of the plugin.An example of a plugin name would be
"java"for the plugin with ID"org.gradle.java". This method always returns the name, regardless of whether the fully qualified ID was used to apply the plugin or not.If the plugin has an unqualified ID, this method will return the same value as
getId().- Returns:
- the name of the plugin
- Since:
- 2.3
-