From 650aee49a98f212c2dfcdae9da8f7bcbfb13d318 Mon Sep 17 00:00:00 2001 From: "Victoria.Petrakovich" Date: Mon, 30 Sep 2024 16:58:23 +0200 Subject: [PATCH] =?UTF-8?q?[kotlin]=20Chore=20=E2=80=93=20small=20fixes=20?= =?UTF-8?q?in=20KotlinWithGradleConfigurator.kt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitOrigin-RevId: c264172de6be37f6bd3785b8b7272d72729cb405 --- .../gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kotlin/gradle/code-insight-common/src/org/jetbrains/kotlin/idea/gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt b/plugins/kotlin/gradle/code-insight-common/src/org/jetbrains/kotlin/idea/gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt index 0c10ee828474..9829a4aa83cf 100644 --- a/plugins/kotlin/gradle/code-insight-common/src/org/jetbrains/kotlin/idea/gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt +++ b/plugins/kotlin/gradle/code-insight-common/src/org/jetbrains/kotlin/idea/gradleCodeInsightCommon/KotlinWithGradleConfigurator.kt @@ -322,7 +322,7 @@ abstract class KotlinWithGradleConfigurator : KotlinProjectConfigurator { val kotlinVersionDefinedExplicitlyEverywhere = allKotlinModules.all { module -> module.getBuildScriptPsiFile()?.let { GradleBuildScriptSupport.getManipulator(it) - }?.hasExplicitlyDefinedKotlinVersion() ?: false + }?.hasExplicitlyDefinedKotlinVersion() == true } val addVersionToSettings: Boolean // If there are different Kotlin versions in the project, don't add to settings @@ -566,7 +566,7 @@ abstract class KotlinWithGradleConfigurator : KotlinProjectConfigurator { version: IdeKotlinVersion, changedFiles: ChangedConfiguratorFiles ): Boolean { - return file.project.executeWriteCommand(KotlinIdeaGradleBundle.message("command.name.configure.0", file.name), null) { + return file.project.executeWriteCommand(KotlinIdeaGradleBundle.message("command.name.configure.0", file.name), groupId = null) { changedFiles.storeOriginalFileContent(file) val isModified = GradleBuildScriptSupport.getManipulator(file) .configureSettingsFile(getKotlinPluginExpression(file.isKtDsl()), version)