Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.jetbrains.compose.desktop.ui.tooling.preview.rpc.PreviewLogger
import org.jetbrains.compose.desktop.ui.tooling.preview.rpc.RemoteConnection
import org.jetbrains.compose.desktop.ui.tooling.preview.rpc.receiveConfigFromGradle
import org.jetbrains.compose.internal.Version
import org.jetbrains.compose.newComposeCompilerError
import org.jetbrains.compose.test.utils.GradlePluginTestBase
import org.jetbrains.compose.test.utils.checkExists
import org.jetbrains.compose.test.utils.checks
Expand Down Expand Up @@ -96,6 +97,41 @@ class GradlePluginTest : GradlePluginTestBase() {
}
}

// Note: we can't test non-jvm targets with Kotlin older than 2.1.0, because of klib abi version bump in 2.1.0
private val oldestSupportedKotlinVersion = "2.1.0"
@Test
fun testOldestKotlinMpp() = with(
testProject(
"application/mpp",
testEnvironment = defaultTestEnvironment.copy(kotlinVersion = oldestSupportedKotlinVersion)
)
) {
val logLine = "Kotlin MPP app is running!"
gradle("run").checks {
check.taskSuccessful(":run")
check.logContains(logLine)
}
}

@Test
fun testOldestKotlinJsMpp() = with(
testProject(
"application/jsMpp",
testEnvironment = defaultTestEnvironment.copy(kotlinVersion = oldestSupportedKotlinVersion)
)
) {
gradle(":compileKotlinJs").checks {
check.taskSuccessful(":compileKotlinJs")
}
}

@Test
fun testOldComposePluginError() = with(testProject("misc/oldComposePlugin")) {
gradleFailure("tasks").checks {
check.logContains(newComposeCompilerError)
}
}

@Test
fun configurePreview() {
val isAlive = AtomicBoolean(true)
Expand Down

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion gradle-plugins/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kotlin.code.style=official
dev.junit.parallel=false

# Default version of Compose Libraries used by Gradle plugin
compose.version=1.8.0+dev2188
compose.version=1.8.10+dev2320
# The latest version of Kotlin compatible with compose.tests.compiler.version. Used only in tests/CI.
compose.tests.kotlin.version=2.1.0
# __SUPPORTED_GRADLE_VERSIONS__
Expand Down
Loading