Kapt3: Extract annotation processing to its own task in Gradle. Now the kotlinCompile task should know nothing about kapt, for the main task it's just a regular Java source root.

This commit is contained in:
Yan Zhulanow
2016-11-03 18:15:38 +03:00
committed by Yan Zhulanow
parent 92282072fc
commit 95d1210317
11 changed files with 335 additions and 180 deletions
@@ -32,8 +32,13 @@ interface KotlinGradleSubplugin<KotlinCompile : AbstractCompile> {
variantData: Any?,
javaSourceSet: SourceSet?
): List<SubpluginOption>
fun getPluginName(): String
fun getSubpluginKotlinTasks(
project: Project,
kotlinCompile: KotlinCompile
): List<AbstractCompile> = emptyList()
fun getCompilerPluginId(): String
fun getGroupName(): String
fun getArtifactName(): String
}