diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPluginWrapper.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPluginWrapper.kt index b7944062f51e1..3e0b71a9adbe1 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPluginWrapper.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPluginWrapper.kt @@ -68,7 +68,10 @@ abstract class DefaultKotlinBasePlugin : KotlinBasePlugin { override fun apply(project: Project) { project.registerDefaultVariantImplementations() - BuildFusService.registerIfAbsent(project, pluginVersion) + val fusEnabled = project.properties.getOrDefault("kotlin.statistics.fus.enabled","true").toString().toBoolean() + if (fusEnabled) { + BuildFusService.registerIfAbsent(project, pluginVersion) + } project.gradle.projectsEvaluated { whenBuildEvaluated(project)