Kapt: Annotation processors should not be discovered when the processor fqNames are set by user (#KT-22939)

This commit is contained in:
Yan Zhulanow
2018-03-16 22:14:13 +03:00
parent dc8eb7446f
commit b1d7935d4a
9 changed files with 54 additions and 17 deletions
@@ -69,6 +69,7 @@ open class Kapt3IT : Kapt3BaseIT() {
assertContains("example.JavaTest PASSED")
assertClassFilesNotContain(File(project.projectDir, "build/classes"), "ExampleSourceAnnotation")
assertNotContains("warning: The following options were not recognized by any processor")
assertContains("Need to discovery annotation processors in the AP classpath")
}
project.build("build") {
@@ -135,6 +136,7 @@ open class Kapt3IT : Kapt3BaseIT() {
assertFileExists("build/generated/source/kapt/main/example/TestClassCustomized.java")
assertFileExists(kotlinClassesDir() + "example/TestClass.class")
assertFileExists(javaClassesDir() + "example/TestClassCustomized.class")
assertContains("Annotation processor class names are set, skip AP discovery")
}
}
@@ -44,4 +44,6 @@ kapt {
javacOptions {
option("-Xlint:all")
}
annotationProcessor("example.ExampleAnnotationProcessor")
}