TypeBuilder

Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. cpp-application, cpp-library, swift-application, swift-library, xctest) instead.

A TypeBuilder to configure the registration of a type.

Since

2.2

Parameters

<T>

The registered type.

Functions

Link copied to clipboard
abstract fun defaultImplementation(implementation: Class<*>): TypeBuilder<T>
Allows the plugin to register the implementation type.
Link copied to clipboard
inline fun <T : Any> TypeBuilder<T>.defaultImplementation(implementation: KClass<*>): TypeBuilder<T>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.platform.base.TypeBuilder.defaultImplementation.

Link copied to clipboard
abstract fun internalView(internalView: Class<*>): TypeBuilder<T>
Allows type registration rules to add internal views to the registered type.
Link copied to clipboard
inline fun <T : Any> TypeBuilder<T>.internalView(internalView: KClass<*>): TypeBuilder<T>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.platform.base.TypeBuilder.internalView.