[Gradle] Fix KotlinSpecificDependenciesIT.testRemoveKotlinTestDependency

It looks like we are doing hacky things in the test, but perhaps that's fine for test code
#KT-52998 In Progress
This commit is contained in:
Alexander.Likhachev
2023-01-12 22:47:27 +01:00
committed by Space Team
parent e7fb07ff15
commit 0574421117
@@ -503,9 +503,9 @@ class KotlinSpecificDependenciesIT : KGPBaseTest() {
buildGradle.appendText( buildGradle.appendText(
""" """
def dependency
dependencies { testImplementation("$kotlinTestMultiplatformDependency") } dependencies { dependency = testImplementation("$kotlinTestMultiplatformDependency") }
configurations.getByName("testImplementation").dependencies.removeAll { it.name == "kotlin-test" } configurations.getByName("testImplementation").dependencies.remove(dependency)
""".trimIndent() """.trimIndent()
) )
checkTaskCompileClasspath("compileTestKotlin", checkModulesNotInClasspath = listOf("kotlin-test")) checkTaskCompileClasspath("compileTestKotlin", checkModulesNotInClasspath = listOf("kotlin-test"))