mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Bug with kapt when no Java files are present.
This commit is contained in:
parent
cc481a4a7f
commit
9ec708ebf3
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
if (wi.value.sourceSuffixes.contains("java")) ij = wi.index
|
if (wi.value.sourceSuffixes.contains("java")) ij = wi.index
|
||||||
if (wi.value.sourceSuffixes.contains("kt")) ik = wi.index
|
if (wi.value.sourceSuffixes.contains("kt")) ik = wi.index
|
||||||
}
|
}
|
||||||
Collections.swap(result, ik, ij)
|
|
||||||
|
if (ik >= 0 && ij >= 0) {
|
||||||
|
Collections.swap(result, ik, ij)
|
||||||
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue