[kotlin] Chore – small fixes in KotlinWithGradleConfigurator.kt

GitOrigin-RevId: c264172de6be37f6bd3785b8b7272d72729cb405
This commit is contained in:
Victoria.Petrakovich
2024-10-01 15:10:29 +00:00
committed by intellij-monorepo-bot
parent 938557f2c2
commit 650aee49a9
@@ -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)