registerKaptGenerateStubsTask

abstract fun registerKaptGenerateStubsTask(taskName: String, compileTask: TaskProvider<out KotlinJvmCompile>, kaptExtension: KaptExtensionConfig, explicitApiMode: Provider<ExplicitApiMode> = providerFactory.provider { ExplicitApiMode.Disabled }): TaskProvider<out KaptGenerateStubs>

Registers a new kapt generation task with the given taskName.

This task creates Java source stubs from Kotlin sources. It is designed to be used together with the Kapt task. Run this task before the Kapt task.

Since

2.1.0

Parameters

taskName

task name to set

compileTask

related KotlinJvmCompile task that is part of the same compilation unit

kaptExtension

an instance of KaptExtensionConfig

explicitApiMode

ExplicitApiMode for this task


Deprecated

Replaced with 'registerKaptGenerateStubsTask(taskName, compileTask, kaptExtension, explicitApiMode)'

Registers a new kapt stub generation task with the given taskName.

This task creates Java source stubs from Kotlin sources. It is designed to be used together with the Kapt task. Run this task before the Kapt task.

Since

1.7.0