Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz authored and AlexanderBartash committed Oct 13, 2024
1 parent fda0f69 commit d4f9a6e
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 281 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ abstract class ExtractorTransformer @Inject constructor(

/**
* Pre-create Ivy XML files so that later this directory can be used as an Ivy repository without having to discover
* modules & plugins each time the build is run.
* modules and plugins each time the build is run.
*/
private fun createIvyXmls(platformPath: Path) {
val isIde = platformPath.listDirectoryEntries().map { it.name }.containsAll(
Expand All @@ -150,12 +150,12 @@ abstract class ExtractorTransformer @Inject constructor(
val pluginManager = IdePluginManager.createManager(createTempDirectory())
val bundledPlugins = platformPath.getBundledPlugins(pluginManager)

for (plugin in bundledPlugins.values) {
bundledPlugins.values.forEach { plugin ->
val pluginId = plugin.pluginId
val pluginVersion = plugin.pluginVersion
val pluginPath = plugin.originalFile
if (null == pluginId || null == pluginVersion || null == pluginPath) {
continue
return@forEach
}

val group = Constants.Configurations.Dependencies.BUNDLED_PLUGIN_GROUP
Expand Down
Loading

0 comments on commit d4f9a6e

Please sign in to comment.