Disabling Kotlin builder on Android Studio only for Java.

Original commit: bf150c8dde
This commit is contained in:
Evgeny Gerashchenko
2014-11-26 16:38:31 +03:00
parent ff35192506
commit 3163e7406e
@@ -85,7 +85,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
val messageCollector = MessageCollectorAdapter(context)
// Workaround for Android Studio
if (!JavaBuilder.IS_ENABLED[context, true]) {
if (!JpsUtils.isJsKotlinModule(chunk.representativeTarget()) && !JavaBuilder.IS_ENABLED[context, true]) {
messageCollector.report(INFO, "Kotlin JPS plugin is disabled", NO_LOCATION)
return NOTHING_DONE
}