[Gradle][Minor] kgp-idea-proto: Avoid capturing project in test task

KT-54825
This commit is contained in:
Sebastian Sellmair
2022-11-11 12:37:57 +01:00
committed by Space Team
parent bc4644a031
commit b44be0d761
@@ -105,9 +105,12 @@ run {
} }
tasks.test { tasks.test {
dependsOn(compatibilityTestClasspath) val capturedCompatibilityTestClasspath: FileCollection = compatibilityTestClasspath
inputs.files(compatibilityTestClasspath) dependsOn(capturedCompatibilityTestClasspath)
doFirst { systemProperty("compatibilityTestClasspath", compatibilityTestClasspath.files.joinToString(";") { it.absolutePath }) } inputs.files(capturedCompatibilityTestClasspath)
doFirst {
systemProperty("compatibilityTestClasspath", capturedCompatibilityTestClasspath.files.joinToString(";") { it.absolutePath })
}
} }
} }