-
- All Implemented Interfaces:
public interface KotlinJvmFactory
An API used by third-party plugins to integration with the Kotlin Gradle plugin.
-
-
Method Summary
Modifier and Type Method Description abstract KotlinJvmOptions
createKotlinJvmOptions()
Creates instance of DSL object that should be used to configure JVM/android specific compilation. abstract TaskProvider<out KotlinJvmCompile>
registerKotlinJvmCompileTask(String taskName)
Creates a Kotlin compile task. abstract TaskProvider<out KaptGenerateStubs>
registerKaptGenerateStubsTask(String taskName)
Creates a stub generation task which creates Java sources stubs from Kotlin sources. abstract TaskProvider<out Kapt>
registerKaptTask(String taskName)
Creates a KAPT task which runs annotation processing. abstract Unit
addCompilerPluginDependency(Provider<Object> dependency)
Adds a compiler plugin dependency to this project. abstract FileCollection
getCompilerPlugins()
Returns a FileCollection that contains all compiler plugins classpath for this project. abstract KaptExtensionConfig
getKaptExtension()
Instance of DSL object that should be used to configure KAPT stub generation and annotation processing tasks. abstract KotlinTopLevelExtensionConfig
getKotlinExtension()
Instance of DSL object that should be used to configure Kotlin compilation pipeline. -
-
Method Detail
-
createKotlinJvmOptions
abstract KotlinJvmOptions createKotlinJvmOptions()
Creates instance of DSL object that should be used to configure JVM/android specific compilation.
-
registerKotlinJvmCompileTask
abstract TaskProvider<out KotlinJvmCompile> registerKotlinJvmCompileTask(String taskName)
Creates a Kotlin compile task.
-
registerKaptGenerateStubsTask
abstract TaskProvider<out KaptGenerateStubs> registerKaptGenerateStubsTask(String taskName)
Creates a stub generation task which creates Java sources stubs from Kotlin sources.
-
registerKaptTask
abstract TaskProvider<out Kapt> registerKaptTask(String taskName)
Creates a KAPT task which runs annotation processing.
-
addCompilerPluginDependency
abstract Unit addCompilerPluginDependency(Provider<Object> dependency)
Adds a compiler plugin dependency to this project. This can be e.g a Maven coordinate or a project included in the build.
-
getCompilerPlugins
abstract FileCollection getCompilerPlugins()
Returns a FileCollection that contains all compiler plugins classpath for this project.
-
getKaptExtension
abstract KaptExtensionConfig getKaptExtension()
Instance of DSL object that should be used to configure KAPT stub generation and annotation processing tasks.
-
getKotlinExtension
abstract KotlinTopLevelExtensionConfig getKotlinExtension()
Instance of DSL object that should be used to configure Kotlin compilation pipeline.
-
-
-
-