Package org.gradle.plugin.use
Interface PluginId
-
public interface PluginIdA description of a plugin.- Since:
- 3.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetId()The fully qualified plugin ID.java.lang.StringgetName()The plugin name without the namespace.java.lang.StringgetNamespace()The namespace of the plugin ornullif the ID contains no..PluginIdwithNamespace(java.lang.String namespace)Takes this unqualified plugin ID and adds a namespace.
-
-
-
Method Detail
-
getId
java.lang.String getId()
The fully qualified plugin ID.
-
getNamespace
@Nullable java.lang.String getNamespace()
The namespace of the plugin ornullif the ID contains no..
-
getName
java.lang.String getName()
The plugin name without the namespace.
-
withNamespace
PluginId withNamespace(java.lang.String namespace)
Takes this unqualified plugin ID and adds a namespace.- Parameters:
namespace- the namespace to add.- Returns:
- the plugin ID qualified with the given namespace
- Throws:
java.lang.IllegalArgumentException- if the ID already had a namespace
-
-