[Gradle] Make CInterop[MDT]Task compatible with Configuration Cache

^KT-49933
This commit is contained in:
Anton Lakotka
2023-01-16 14:25:05 +01:00
committed by Space Team
parent 458e69f698
commit 9ff9fa35ec
2 changed files with 47 additions and 38 deletions
@@ -61,11 +61,11 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
@MppGradlePluginTests
@DisplayName("works with MPP publishing")
@GradleTestVersions(minVersion = TestVersions.Gradle.G_7_4)
@GradleTest
fun testMppWithMavenPublish(gradleVersion: GradleVersion) {
project("new-mpp-lib-and-app/sample-lib", gradleVersion) {
// KT-49933: Support Gradle Configuration caching with HMPP
val publishedTargets = listOf(/*"kotlinMultiplatform",*/ "jvm6", "nodeJs", "linux64", "mingw64", "mingw86")
val publishedTargets = listOf("kotlinMultiplatform", "jvm6", "nodeJs", "linux64", "mingw64", "mingw86")
testConfigurationCacheOf(
":buildKotlinToolingMetadata", // Remove it when KT-49933 is fixed and `kotlinMultiplatform` publication works
@@ -102,6 +102,7 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
":lib:compileTestKotlinIosX64",
":lib:linkDebugTestIosX64",
":lib:transformCommonMainDependenciesMetadata",
":lib:transformCommonMainCInteropDependenciesMetadata"
)
}
@@ -109,12 +110,6 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
testConfigurationCacheOf(
"build",
executedTaskNames = expectedTasks,
buildOptions = defaultBuildOptions.copy(
freeArgs = listOf(
// remove after KT-49933 is fixed
"-x", ":lib:transformCommonMainCInteropDependenciesMetadata",
)
)
)
}
}