Skip to content

Commit

Permalink
Update gradle plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Dec 5, 2023
1 parent fd6f031 commit da76293
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ class DesktopApplicationTest : GradlePluginTestBase() {
@Test
fun testSettingLatestCompiler() = testProject(
TestProjects.customCompiler, defaultTestEnvironment.copy(
kotlinVersion = "1.7.20",
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.7.20\")",
kotlinVersion = "1.8.20",
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.8.20\")",
)
).checkCustomComposeCompiler()

@Test
fun testSettingAutoCompiler() = testProject(
TestProjects.customCompiler, defaultTestEnvironment.copy(
kotlinVersion = "1.7.10",
kotlinVersion = "1.8.10",
composeCompilerPlugin = "dependencies.compiler.auto",
)
).checkCustomComposeCompiler()

@Test
fun testKotlinCheckDisabled() = testProject(
TestProjects.customCompilerArgs, defaultTestEnvironment.copy(
kotlinVersion = "1.7.21",
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.7.20\")",
composeCompilerArgs = "\"suppressKotlinVersionCompatibilityCheck=1.7.21\""
kotlinVersion = "1.9.21",
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.9.20\")",
composeCompilerArgs = "\"suppressKotlinVersionCompatibilityCheck=1.9.21\""
)
).checkCustomComposeCompiler(checkKJS = true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import org.junit.jupiter.api.Test

class KotlinCompatibilityTest : GradlePluginTestBase() {
@Test
fun testKotlinMpp_1_7_10() = testMpp("1.7.10")
fun testKotlinMpp_1_9_10() = testMpp("1.9.10")

@Test
fun testKotlinJsMpp_1_7_10() = testJsMpp("1.7.10")
fun testKotlinJsMpp_1_9_10() = testJsMpp("1.9.10")

@Test
fun testKotlinMpp_1_7_20() = testMpp("1.7.20")
fun testKotlinMpp_1_9_20() = testMpp("1.9.20")

@Test
fun testKotlinJsMpp_1_7_20() = testJsMpp("1.7.20")
fun testKotlinJsMpp_1_9_20() = testJsMpp("1.9.20")

private fun testMpp(kotlinVersion: String) = with(
testProject(
Expand Down
2 changes: 1 addition & 1 deletion gradle-plugins/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.parallel=true
kotlin.code.style=official

# Default version of Compose Libraries used by Gradle plugin
compose.version=1.6.0-dev1268
compose.version=0.0.0-dev1314
# The latest version of Compose Compiler used by Gradle plugin. Used only in tests/CI.
compose.tests.compiler.version=1.5.4
# The latest version of Kotlin compatible with compose.tests.compiler.version. Used only in tests/CI.
Expand Down

0 comments on commit da76293

Please sign in to comment.