configure

inline fun <T : Any> ExtensionAware.configure(noinline configuration: T.() -> Unit)(source)

Executes the given configuration block against the extension of the specified type.

Parameters

T

the extension type.

configuration

the configuration block.

See also


inline fun <T : Any> ExtensionContainer.configure(noinline action: T.() -> Unit)(source)

Looks for the extension of the specified type and configures it with the supplied action.

Since

5.0

Parameters

T

the extension type

action

the configuration action

See also

ExtensionContainer.configure

inline fun <T : Any> Project.configure(noinline configuration: T.() -> Unit)(source)

Executes the given configuration block against the project extension of the specified type.

If no extension is found, configures a project convention if available. Note, that the concept of conventions is deprecated and scheduled for removal in Gradle 9.

Parameters

T

the project extension type.

configuration

the configuration block.

See also


inline fun <T : Any> ExtensionContainer.configure(type: KClass<T>, action: Action<in T>)(source)
inline fun <T : Any> ExtensionContainer.configure(type: KClass<T>, action: Action<in T>)(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ExtensionContainer.configure.

See also

ExtensionContainer.configure