mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix the compiler bug.
This commit is contained in:
parent
eb575abc14
commit
b62e167cde
3 changed files with 13 additions and 5 deletions
|
@ -26,7 +26,9 @@ abstract class BaseJvmPlugin<T>(open val configActor: ConfigActor<T>) :
|
|||
// IBuildConfigContributor
|
||||
|
||||
private fun hasSourceFiles(project: Project)
|
||||
= KFiles.findSourceFiles(project.directory, project.sourceDirectories, listOf("java")).size > 0
|
||||
= KFiles.findSourceFiles(project.directory, project.sourceDirectories, sourceSuffixes()).size > 0
|
||||
|
||||
fun affinity(project: Project) = if (hasSourceFiles(project)) 1 else 0
|
||||
|
||||
abstract fun sourceSuffixes() : List<String>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue