1
0
Fork 0
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:
Cedric Beust 2016-06-24 20:10:59 -07:00
parent eb575abc14
commit b62e167cde
3 changed files with 13 additions and 5 deletions

View file

@ -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>
}