mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Fix suffixes.
This commit is contained in:
parent
8ccece97e0
commit
df5fcce61e
5 changed files with 30 additions and 17 deletions
|
@ -56,6 +56,8 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
|||
val compiler = object: ICompiler {
|
||||
override val sourceSuffixes = listOf("java")
|
||||
|
||||
override val sourceDirectory = "java"
|
||||
|
||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
|
||||
val result =
|
||||
if (info.sourceFiles.size > 0) {
|
||||
|
|
|
@ -115,6 +115,8 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
|
|||
val compiler = object: ICompiler {
|
||||
override val sourceSuffixes = listOf("kt")
|
||||
|
||||
override val sourceDirectory = "kotlin"
|
||||
|
||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
|
||||
val result =
|
||||
if (info.sourceFiles.size > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue