From 9f0121705049f4cab4474bcfa1710925697baece Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Wed, 21 Sep 2022 12:17:59 +0200 Subject: [PATCH] [Gradle][MPP] Add comment for CInteropMetadataDependencyTransformationTask.OutputLibraryFilesDiscovery.Precise ^KT-48135 Verification Pending --- .../internal/CInteropMetadataDependencyTransformationTask.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CInteropMetadataDependencyTransformationTask.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CInteropMetadataDependencyTransformationTask.kt index 3fcd84805c9..f7c5e2a28b9 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CInteropMetadataDependencyTransformationTask.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CInteropMetadataDependencyTransformationTask.kt @@ -136,6 +136,7 @@ internal open class CInteropMetadataDependencyTransformationTask @Inject constru object Precise : OutputLibraryFilesDiscovery() { override fun resolveOutputLibraryFiles(outputDirectory: File, resolutions: Iterable): Set { return resolutions.flatMap { chooseVisibleSourceSets -> + /* This task only cares about extracting artifacts. Project to Project dependencies can return emptyList */ if (chooseVisibleSourceSets.metadataProvider !is ArtifactMetadataProvider) return@flatMap emptyList() chooseVisibleSourceSets.metadataProvider.read { artifactContent -> chooseVisibleSourceSets.visibleSourceSetsProvidingCInterops