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
@@ -31,6 +31,12 @@ interface CommandLineProcessor {
put(option, paths)
}
fun <T> CompilerConfiguration.appendList(option: CompilerConfigurationKey<List<T>>, values: List<T>) {
val paths = getList(option).toMutableList()
paths.addAll(values)
put(option, paths)
}
fun CompilerConfiguration.applyOptionsFrom(map: Map<String, List<String>>, pluginOptions: Collection<CliOption>) {
for ((key, values) in map) {
val option = pluginOptions.firstOrNull { it.name == key } ?: continue