@@ -12,8 +12,6 @@ import kotlin.test.Test
1212class 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