[Gradle] Test commonizeNativeDistribution task is not initialized

^KT-61359 In Progress
This commit is contained in:
Anton Lakotka
2023-10-15 23:13:44 +02:00
committed by Space Team
parent e16f03fc49
commit 2111bfae40
@@ -65,6 +65,24 @@ class CommonizerTaskTests {
subproject.tasks.getByName("commonize").assertDependsOn(rootProjectCommonizeNativeDistributionTask)
}
@Test
fun `test commonizeNativeDistributionTask is not created eagerly`() {
val project = buildProjectWithMPP {
tasks.configureEach {
if (it.name == "commonizeNativeDistribution") {
fail("Task $it was not expected to be created eagerly")
}
}
kotlin {
linuxArm64()
linuxX64()
}
}
project.evaluate()
}
/**
* Check if jvm-ecosystem plugin is applied when commonizer task is applied to the root project.
* Context: https://github.com/gradle/gradle/issues/20145
@@ -128,7 +146,6 @@ class CommonizerTaskTests {
assertNotNull(rootProject.plugins.findPlugin(JVM_ECOSYSTEM_PLUGIN_ID))
}
@Test
fun `test commonizeCInteropTask`() {
val commonizeCInteropTaskName = "commonizeCInterop"