[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 {
dependsOn(compatibilityTestClasspath)
inputs.files(compatibilityTestClasspath)
doFirst { systemProperty("compatibilityTestClasspath", compatibilityTestClasspath.files.joinToString(";") { it.absolutePath }) }
val capturedCompatibilityTestClasspath: FileCollection = compatibilityTestClasspath
dependsOn(capturedCompatibilityTestClasspath)
inputs.files(capturedCompatibilityTestClasspath)
doFirst {
systemProperty("compatibilityTestClasspath", capturedCompatibilityTestClasspath.files.joinToString(";") { it.absolutePath })
}
}
}