Skip to content

Commit

Permalink
Cleanup OciImageDependenciesImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Nov 29, 2024
1 parent 6159026 commit cdae920
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ internal abstract class OciImageDependenciesImpl @Inject constructor(
}

private val indexGraph = lazy { resolveOciVariantGraph(indexConfiguration.incoming) }
private val allDependencies = lazy { indexConfiguration.allDependencies.filterIsInstance<ModuleDependency>() }

final override fun resolve(platformSelectorProvider: Provider<PlatformSelector>): Provider<List<OciImagesTask.ImageInput>> {
val lazy = lazy {
Expand All @@ -93,7 +92,7 @@ internal abstract class OciImageDependenciesImpl @Inject constructor(
val selectedPlatformsGraph: OciVariantGraphWithSelectedPlatforms?
val platformConfigurationPairs: List<Pair<Platform, Configuration>>
if (singlePlatform == null) {
val allDependencies = allDependencies.value
val allDependencies = indexConfiguration.allDependencies.filterIsInstance<ModuleDependency>()
selectedPlatformsGraph = indexGraph.value.selectPlatforms(platformSelector)
platformConfigurationPairs = selectedPlatformsGraph.groupByPlatform().map { (platform, graph) ->
val platformSelectorString = platformSelector?.toString() ?: "all supported"
Expand Down

0 comments on commit cdae920

Please sign in to comment.