diff --git a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts index c00909d2e999b..f0af51c790b28 100644 --- a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts +++ b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts @@ -289,6 +289,7 @@ tasks { } } GradlePluginVariant.values().forEach { variant -> + if (kotlinBuildProperties.isInJpsBuildIdeaSync) return@forEach val sourceSet = sourceSets.getByName(variant.sourceSetName) val taskSuffix = sourceSet.jarTaskName.capitalize() val shadowJarTaskName = "$EMBEDDABLE_COMPILER_TASK_NAME$taskSuffix"