register Kapt Generate Stubs Task
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
task Name
task name to set
compile Task
related KotlinJvmCompile task that is part of the same compilation unit
kapt Extension
an instance of KaptExtensionConfig
explicit Api Mode
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