mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Kotlin compiler should run first.
This commit is contained in:
parent
c23693a4f2
commit
7bea179d69
3 changed files with 36 additions and 24 deletions
|
@ -19,8 +19,7 @@ import javax.inject.Singleton
|
|||
@Singleton
|
||||
class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val dependencyManager: DependencyManager,
|
||||
override val configActor: ConfigActor<KotlinConfig>)
|
||||
: BaseJvmPlugin<KotlinConfig>(configActor), IDocContributor, IClasspathContributor, ICompilerContributor,
|
||||
IBuildConfigContributor {
|
||||
: BaseJvmPlugin<KotlinConfig>(configActor), IDocContributor, IClasspathContributor, ICompilerContributor, IBuildConfigContributor {
|
||||
|
||||
companion object {
|
||||
const val PLUGIN_NAME = "Kotlin"
|
||||
|
@ -116,6 +115,9 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors, val depen
|
|||
val compiler = object: ICompiler {
|
||||
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 sourceDirectory = "kotlin"
|
||||
|
||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue