Kapt, Gradle: The first dependency is kotlin-annotation-processing (we reuse the old configurations from kapt)
(cherry picked from commit f95a3d1)
This commit is contained in:
committed by
Yan Zhulanow
parent
a8b577cd09
commit
1b05c5fb0c
+1
-1
@@ -73,7 +73,7 @@ class Kapt2KotlinGradleSubplugin : KotlinGradleSubplugin {
|
||||
|
||||
fun handleSourceSet(sourceSetName: String) {
|
||||
val kapt2Configuration = project.findKaptConfiguration(sourceSetName)
|
||||
if (kapt2Configuration != null && kapt2Configuration.dependencies.size > 0) {
|
||||
if (kapt2Configuration != null && kapt2Configuration.dependencies.size > 1) {
|
||||
javaCompile.dependsOn(kapt2Configuration.buildDependencies)
|
||||
kaptClasspath.addAll(kapt2Configuration.resolve())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user