mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Chore – small fixes in KotlinWithGradleConfigurator.kt
GitOrigin-RevId: c264172de6be37f6bd3785b8b7272d72729cb405
This commit is contained in:
committed by
intellij-monorepo-bot
parent
938557f2c2
commit
650aee49a9
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user