You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Gradle] Pass actual root module publication coordinates to GMDT
So it matches with PSM content.
To illustrate consider two projects App and Lib. App depends on Lib.
When lib has configured Maven Publication with custom GAV coordinates.
They correctly appears in its PSM file this happens in
[ExportRootModuleCoordinates].
However, when another project (App) resolves dependency to Lib
it will get its default gav coordinates.
And this will cause inconsistencies during
Metadata Dependencies Transformations because Lib's PSM and resolved
graph will have different GAVs.
To solve this it is necessary to use correct root module GAV.
^KT-73620 Verification Pending
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/mpp/MppMetadataResolutionIT.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/testDsl.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/base-kotlin-multiplatform-library/settings.gradle.kts
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/internal/KotlinSecondaryVariantsDataSharing.kt
+11-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,11 @@ internal val Project.kotlinSecondaryVariantsDataSharing: KotlinSecondaryVariants
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/GranularMetadataTransformation.kt
if (project.kotlinPropertiesProvider.kotlinKmpProjectIsolationEnabled) project.kotlinSecondaryVariantsDataSharing.consumeRootModuleCoordinates(kotlinSourceSet.internal)
0 commit comments