Package org.gradle.api.initialization
Interface SharedModelDefaults
-
@Incubating public interface SharedModelDefaults
Shared model defaults for configuring software types. Defaults apply initial values to the model objects of software types. When a software type plugin is applied to a project, the model object for the software type will be pre-configured with the values set in the default.- Since:
- 8.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidadd(java.lang.String name, java.lang.Class<T> publicType, Action<? super T> configureAction)Adds a model default for the software type specified by the given name.
-
-
-
Method Detail
-
add
<T> void add(java.lang.String name, java.lang.Class<T> publicType, Action<? super T> configureAction)Adds a model default for the software type specified by the given name.- Parameters:
name- the name of the software typepublicType- the public type of the software typeconfigureAction- the action to configure the software type- Since:
- 8.10
-
-