Revert "[kotlin] Put configureLibraryJar() in KotlinWithLibraryConfigurator under WA for configureModuleWithLibrary()"

This reverts commit a26bfde0489c2d5e28e33bfe9fcd89c402a2061e.

GitOrigin-RevId: b08e0a2202ed71088d389bfdf13c9d8b2f8c276c
This commit is contained in:
Dmitry Batkovich
2024-12-20 20:58:38 +00:00
committed by intellij-monorepo-bot
parent ad645bf141
commit 8ea1cd2019
@@ -219,12 +219,10 @@ abstract class KotlinWithLibraryConfigurator<P : LibraryProperties<*>> protected
?: error("Kotlin Library has to be created in advance")) as LibraryEx
library.modifiableModel.let { libraryModel ->
// will be performed later on EDT
writeActions.addOrExecute { runWriteAction {
configureLibraryJar(project, libraryModel, libraryJarDescriptor, collector, ProgressManager.getGlobalProgressIndicator())
libraryModel.commit()
}
}
configureLibraryJar(project, libraryModel, libraryJarDescriptor, collector, ProgressManager.getGlobalProgressIndicator())
// commit will be performed later on EDT
writeActions.addOrExecute { runWriteAction { libraryModel.commit() } }
}
addLibraryToModuleIfNeeded(module, library, collector, writeActions)
@@ -239,10 +237,6 @@ abstract class KotlinWithLibraryConfigurator<P : LibraryProperties<*>> protected
}
}
/**
* Updates KotlinJavaRuntime.xml
* Should be performed under a write action.
*/
fun configureLibraryJar(
project: Project,
library: LibraryEx.ModifiableModelEx,