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
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/uklibs/KmpResolutionIT.kt
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -547,7 +547,11 @@ class KmpResolutionIT : KGPBaseTest() {
547
547
"org.jetbrains.kotlin:kotlin-dom-api-compat:${defaultBuildOptions.kotlinVersion}" to ResolvedComponentWithArtifacts(
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/uklibs/UklibInterprojectConsumptionIT.kt
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,11 @@ class UklibInterprojectConsumptionIT : KGPBaseTest() {
197
197
"org.jetbrains.kotlin:kotlin-dom-api-compat:${defaultBuildOptions.kotlinVersion}" to ResolvedComponentWithArtifacts(
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/consumption/UklibConsumptionSetupAction.kt
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -441,7 +441,7 @@ internal class SelectBestMatchingVariantForKmpResolutionUsage : AttributeDisambi
441
441
*
442
442
* To make sure our rule is in control, we can try to reshuffle rules in [setAttributeDisambiguationPrecedence]
443
443
*/
444
-
valapiElements=listOf(
444
+
valnonJvmApiElements=listOf(
445
445
KOTLIN_UKLIB_API,
446
446
/**
447
447
* Prefer platform apiElements if it is available when consuming standard KMP publication for compilation
@@ -450,6 +450,9 @@ internal class SelectBestMatchingVariantForKmpResolutionUsage : AttributeDisambi
450
450
*/
451
451
KOTLIN_API,
452
452
)
453
+
val jvmApiElements =listOf(
454
+
KOTLIN_UKLIB_API,
455
+
)
453
456
val runtimeElements =listOf(
454
457
/**
455
458
* Prefer UKlib runtime
@@ -461,8 +464,8 @@ internal class SelectBestMatchingVariantForKmpResolutionUsage : AttributeDisambi
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/ResolutionTestingAttributes.kt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,12 @@ val uklibTransformationWasmWasiAttributes = mapOf(
40
40
"org.jetbrains.kotlin.uklibState" to "decompressed",
41
41
)
42
42
43
+
val preHmppKmpAttributes =mapOf(
44
+
"org.gradle.category" to "library",
45
+
"org.gradle.usage" to "kotlin-api",
46
+
"org.jetbrains.kotlin.platform.type" to "common"
47
+
)
48
+
43
49
val jvmRuntimeAttributes =mapOf(
44
50
"org.gradle.category" to "library",
45
51
"org.gradle.libraryelements" to "jar",
@@ -157,4 +163,7 @@ val uklibArtifact = mapOf(
157
163
)
158
164
val klibCinteropCommonizerType =mapOf(
159
165
"org.jetbrains.kotlin.cinteropCommonizerArtifactType" to "klib",
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/UklibResolutionWithMockComponents.kt
+148-4Lines changed: 148 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -517,9 +517,8 @@ class UklibResolutionTestsWithMockComponents {
0 commit comments