Don't report Kotlin JPS versions for modules without Kotlin.

This commit is contained in:
Evgeny Gerashchenko
2014-06-05 18:11:41 +04:00
parent 3a2a3e7cd5
commit 2568bf6091
@@ -99,7 +99,9 @@ public class KotlinBuilder extends ModuleLevelBuilder {
return ExitCode.NOTHING_DONE;
}
messageCollector.report(INFO, "Kotlin JPS plugin version " + KotlinVersion.VERSION, NO_LOCATION);
if (hasKotlinFiles(chunk)) {
messageCollector.report(INFO, "Kotlin JPS plugin version " + KotlinVersion.VERSION, NO_LOCATION);
}
ModuleBuildTarget representativeTarget = chunk.representativeTarget();