[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(
|
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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user