[Gradle] MppCompositeBuildIT: Add test for included build using different Kotlin version
^KT-52172 Verification Pending
This commit is contained in:
committed by
Space Team
parent
fb6a2f5bb4
commit
8a01ad9010
+20
@@ -131,4 +131,24 @@ class MppCompositeBuildIT : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GradleTest
|
||||||
|
fun `test - sample1 - assemble and execute - included build using older version of Kotlin`(gradleVersion: GradleVersion) {
|
||||||
|
project("mpp-composite-build/sample1", gradleVersion) {
|
||||||
|
projectPath.resolve("included-build").addDefaultBuildFiles()
|
||||||
|
buildGradleKts.replaceText("<kgp_version>", KOTLIN_VERSION)
|
||||||
|
projectPath.resolve("included-build/build.gradle.kts").replaceText("<kgp_version>", "1.7.21")
|
||||||
|
|
||||||
|
build("assemble") {
|
||||||
|
assertTasksExecuted(":compileCommonMainKotlinMetadata")
|
||||||
|
assertTasksExecuted(":compileKotlinJvm")
|
||||||
|
assertTasksExecuted(":compileKotlinJs")
|
||||||
|
}
|
||||||
|
|
||||||
|
build("check") {
|
||||||
|
assertTasksExecuted(":jvmTest")
|
||||||
|
assertTasksExecuted(":jsTest")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user