1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00
This commit is contained in:
Cedric Beust 2016-04-12 18:15:13 -07:00
parent 78b93c1979
commit 9e4164a790

View file

@ -323,6 +323,8 @@ open class JvmCompilerPlugin @Inject constructor(
// Special treatment if we are compiling Kotlin files and the project also has a java source // Special treatment if we are compiling Kotlin files and the project also has a java source
// directory. In this case, also pass that java source directory to the Kotlin compiler as is // directory. In this case, also pass that java source directory to the Kotlin compiler as is
// so that it can parse its symbols // so that it can parse its symbols
// Note: this should actually be queried on the compiler object so that this method, which
// is compiler agnostic, doesn't hardcode Kotlin specific stuff
val extraSourceFiles = arrayListOf<String>() val extraSourceFiles = arrayListOf<String>()
if (sourceSuffixes.any { it.contains("kt")}) { if (sourceSuffixes.any { it.contains("kt")}) {
project.sourceDirectories.forEach { project.sourceDirectories.forEach {