Package org.gradle.plugin.devel
Class PluginDeclaration
- java.lang.Object
-
- org.gradle.plugin.devel.PluginDeclaration
-
- All Implemented Interfaces:
Serializable,Named
public class PluginDeclaration extends Object implements Named, Serializable
Describes a Gradle plugin under development.- Since:
- 2.14
- See Also:
JavaGradlePluginPlugin, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
-
Constructor Summary
Constructors Constructor Description PluginDeclaration(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()Returns the description for this plugin declaration.StringgetDisplayName()Returns the display name for this plugin declaration.StringgetId()StringgetImplementationClass()StringgetName()The object's name.inthashCode()voidsetDescription(String description)Sets the description for this plugin declaration.voidsetDisplayName(String displayName)Sets the display name for this plugin declaration.voidsetId(String id)voidsetImplementationClass(String implementationClass)
-
-
-
Constructor Detail
-
PluginDeclaration
public PluginDeclaration(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:NamedThe object's name.Must be constant for the life of the object.
-
getId
public String getId()
-
setId
public void setId(String id)
-
getImplementationClass
public String getImplementationClass()
-
setImplementationClass
public void setImplementationClass(String implementationClass)
-
getDisplayName
@Incubating @Nullable public String getDisplayName()
Returns the display name for this plugin declaration.The display name is used when publishing this plugin to repositories that support human-readable artifact names.
- Since:
- 4.10
-
setDisplayName
@Incubating public void setDisplayName(String displayName)
Sets the display name for this plugin declaration.The display name is used when publishing this plugin to repositories that support human-readable artifact names.
- Since:
- 4.10
-
getDescription
@Incubating @Nullable public String getDescription()
Returns the description for this plugin declaration.The description is used when publishing this plugin to repositories that support providing descriptions for artifacts.
- Since:
- 4.10
-
setDescription
@Incubating public void setDescription(String description)
Sets the description for this plugin declaration.The description is used when publishing this plugin to repositories that support providing descriptions for artifacts.
- Since:
- 4.10
-
-