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

Original commit: 2568bf6091
This commit is contained in:
Evgeny Gerashchenko
2014-06-05 18:11:41 +04:00
parent 7e115bd440
commit 9676e8327d
@@ -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();