Class PluginDeclaration
- All Implemented Interfaces:
Named
-
Nested Class Summary
Nested classes/interfaces inherited from interface Named
Named.Namer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description for this plugin declaration.Returns the display name for this plugin declaration.getId()Returns the id.Returns the implementation class.getName()The object's name.abstract SetProperty<String> getTags()Returns the tags property for this plugin declaration.voidsetDescription(String description) Sets the description for this plugin declaration.voidsetDisplayName(String displayName) Sets the display name for this plugin declaration.voidSets the id.voidsetImplementationClass(String implementationClass) Sets the implementation class.
-
Constructor Details
-
PluginDeclaration
-
-
Method Details
-
getName
Description copied from interface:NamedThe object's name.Must be constant for the life of the object.
Implementations should not declare a
Object.toString()that returns anything other than this name. Gradle derives the name from this method wherever it needs one, but renders the object withtoString()in diagnostics, so the two disagreeing produces output that contradicts the behavior it describes. This is easy to miss on anenum, which inherits atoString()returningEnum.name(). -
getId
-
setId
-
getImplementationClass
-
setImplementationClass
Sets the implementation class.- Since:
- 2.14
-
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
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
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
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
-
getTags
Returns the tags property for this plugin declaration.Tags are used when publishing this plugin to repositories that support tagging plugins, for example the Gradle Plugin Portal.
- Since:
- 7.6
-