diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt index be488994..408f55a0 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt @@ -19,7 +19,7 @@ interface ICompiler : Comparable { fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult companion object { - val DEFAULT_PRIORITY: Int = 5 + val DEFAULT_PRIORITY: Int = 10 } /** diff --git a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinPlugin.kt index 2d44c181..98244c1d 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinPlugin.kt @@ -117,7 +117,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val depen override val sourceSuffixes = listOf("kt") /** The Kotlin compiler should run before the Java one */ - override val priority: Int get() = ICompiler.DEFAULT_PRIORITY - 1 + override val priority: Int get() = ICompiler.DEFAULT_PRIORITY - 5 override val sourceDirectory = "kotlin"