Skip to content

Commit 2fbc674

Browse files
committed
Discussions
1 parent 73d6c91 commit 2fbc674

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/test/tests/integration/RuntimeLibrariesCompatibilityCheckTest.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import kotlin.test.Test
1212
class RuntimeLibrariesCompatibilityCheckTest : GradlePluginTestBase() {
1313

1414
@Test
15-
@Ignore("Disabled because the check doesn't trigger, and theoretically the situation can no longer happen. " +
16-
"See https://youtrack.jetbrains.com/issue/CMP-9706/Remove-the-compose-libraries-compatibility-check for removal")
1715
fun correctConfigurationDoesntPrintWarning(): Unit = with(
1816
testProject("misc/compatibilityLibCheck")
1917
) {
@@ -50,13 +48,19 @@ class RuntimeLibrariesCompatibilityCheckTest : GradlePluginTestBase() {
5048
file("build.gradle.kts").modify {
5149
it.replace(
5250
"api(\"org.jetbrains.compose.ui:ui:${defaultTestEnvironment.composeVersion}\")",
53-
"api(\"org.jetbrains.compose.ui:ui\") { version { strictly(\"1.9.3\") } }"
51+
"api(\"org.jetbrains.compose.ui:ui:1.9.3\")"
52+
)
53+
it.replace(
54+
"api(\"org.jetbrains.compose.foundation:foundation:${defaultTestEnvironment.composeVersion}\")",
55+
"api(\"org.jetbrains.compose.foundation:foundation:1.9.3\")"
5456
)
5557
}
5658
val msg = buildString {
5759
appendLine("w: Compose Multiplatform runtime dependencies' versions don't match with plugin version.")
5860
appendLine(" expected: 'org.jetbrains.compose.ui:ui:${defaultTestEnvironment.composeVersion}'")
5961
appendLine(" actual: 'org.jetbrains.compose.ui:ui:1.9.3'")
62+
appendLine(" expected: 'org.jetbrains.compose.foundation:foundation:${defaultTestEnvironment.composeVersion}'")
63+
appendLine(" actual: 'org.jetbrains.compose.foundation:foundation:1.9.3'")
6064
}
6165
gradle("jvmMainClasses").checks {
6266
check.taskSuccessful(":checkJvmMainComposeLibrariesCompatibility")

0 commit comments

Comments
 (0)