Package org.gradle.api.plugins
Schnittstelle Convention
- Alle Superschnittstellen:
ExtensionContainer
Veraltet.
Use extensions instead. This is scheduled for removal in Gradle 9.
A Convention manages a set of convention objects. When you add a convention object to a
Convention, and the properties and methods of the convention object become available as properties and methods of
the object which the convention is associated to. A convention object is simply a POJO or POGO. Usually, a
Convention is used by plugins to extend a Project or a Task.
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> TfindPlugin(Class<T> type) Veraltet.Use extensions instead.org.gradle.internal.metaobject.DynamicObjectVeraltet.Returns a dynamic object which represents the properties and methods contributed by the extensions and convention objects contained in this convention.<T> TVeraltet.Use extensions instead.Veraltet.Use extensions instead.Von Schnittstelle geerbte Methoden org.gradle.api.plugins.ExtensionContainer
add, add, add, configure, configure, configure, create, create, create, findByName, findByType, findByType, getByName, getByType, getByType, getExtensionsSchema, getExtraProperties
-
Methodendetails
-
getPlugins
Veraltet.Use extensions instead. This is scheduled for removal in Gradle 9.Returns the plugin convention objects contained in this convention.- Gibt zurück:
- The plugins. Returns an empty map when this convention does not contain any convention objects.
- Siehe auch:
-
getPlugin
Veraltet.Use extensions instead. This is scheduled for removal in Gradle 9.Locates the plugin convention object with the given type.- Parameter:
type- The convention object type.- Gibt zurück:
- The object. Never returns null.
- Löst aus:
IllegalStateException- When there is no such object contained in this convention, or when there are multiple such objects.- Siehe auch:
-
findPlugin
Veraltet.Use extensions instead. This is scheduled for removal in Gradle 9.Locates the plugin convention object with the given type.- Parameter:
type- The convention object type.- Gibt zurück:
- The object. Returns null if there is no such object.
- Löst aus:
IllegalStateException- When there are multiple matching objects.- Siehe auch:
-
getExtensionsAsDynamicObject
org.gradle.internal.metaobject.DynamicObject getExtensionsAsDynamicObject()Veraltet.Returns a dynamic object which represents the properties and methods contributed by the extensions and convention objects contained in this convention.- Gibt zurück:
- The dynamic object
-