From 0574421117394a1e063fd2c94c7e6f1687df143d Mon Sep 17 00:00:00 2001 From: "Alexander.Likhachev" Date: Thu, 12 Jan 2023 22:47:27 +0100 Subject: [PATCH] [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 --- .../jetbrains/kotlin/gradle/KotlinSpecificDependenciesIT.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinSpecificDependenciesIT.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinSpecificDependenciesIT.kt index 7c6d522adf5..cbe263c554b 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinSpecificDependenciesIT.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinSpecificDependenciesIT.kt @@ -503,9 +503,9 @@ class KotlinSpecificDependenciesIT : KGPBaseTest() { buildGradle.appendText( """ - - dependencies { testImplementation("$kotlinTestMultiplatformDependency") } - configurations.getByName("testImplementation").dependencies.removeAll { it.name == "kotlin-test" } + def dependency + dependencies { dependency = testImplementation("$kotlinTestMultiplatformDependency") } + configurations.getByName("testImplementation").dependencies.remove(dependency) """.trimIndent() ) checkTaskCompileClasspath("compileTestKotlin", checkModulesNotInClasspath = listOf("kotlin-test"))