[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:
committed by
Space Team
parent
e7fb07ff15
commit
0574421117
+3
-3
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user