1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

kotlinc can compile directories.

This commit is contained in:
Cedric Beust 2017-02-10 09:16:01 -08:00
parent 7dc1183953
commit 5b46033e96

View file

@ -112,7 +112,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val depen
/** The Kotlin compiler should run before the Java one, hence priority - 5 */ /** The Kotlin compiler should run before the Java one, hence priority - 5 */
val compiler = CompilerDescription(PLUGIN_NAME, "kotlin", SOURCE_SUFFIXES, KotlinCompiler(), val compiler = CompilerDescription(PLUGIN_NAME, "kotlin", SOURCE_SUFFIXES, KotlinCompiler(),
ICompilerDescription.DEFAULT_PRIORITY - 5, canCompileDirectories = false) ICompilerDescription.DEFAULT_PRIORITY - 5, canCompileDirectories = true)
override fun compilersFor(project: Project, context: KobaltContext) override fun compilersFor(project: Project, context: KobaltContext)
= if (sourceFileCount(project) > 0) listOf(compiler) else emptyList() = if (sourceFileCount(project) > 0) listOf(compiler) else emptyList()