Class PluginDeclaration

java.lang.Object
org.gradle.plugin.devel.PluginDeclaration
All Implemented Interfaces:
Named

public abstract class PluginDeclaration extends Object implements Named
Describes a Gradle plugin under development.
Since:
2.14
See Also:
  • Constructor Details

    • PluginDeclaration

      public PluginDeclaration(String name)
      Creates a new PluginDeclaration.
      Since:
      2.14
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Named
      The 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 with toString() in diagnostics, so the two disagreeing produces output that contradicts the behavior it describes. This is easy to miss on an enum, which inherits a toString() returning Enum.name().

      Specified by:
      getName in interface Named
      Returns:
      The name. Never null.
    • getId

      public String getId()
      Returns the id.
      Since:
      2.14
    • setId

      public void setId(String id)
      Sets the id.
      Since:
      2.14
    • getImplementationClass

      public String getImplementationClass()
      Returns the implementation class.
      Since:
      2.14
    • setImplementationClass

      public void setImplementationClass(String implementationClass)
      Sets the implementation class.
      Since:
      2.14
    • getDisplayName

      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

      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

      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

      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
    • getTags

      public abstract SetProperty<String> 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