[Build] Fix configuration cache issue with :repo:artifacts-tests:test

^KTI-1473 In Progress
This commit is contained in:
Alexander.Likhachev
2023-10-12 14:59:58 +02:00
committed by Space Team
parent f915efab18
commit 1dc76f0b94
+2 -1
View File
@@ -16,10 +16,11 @@ dependencies {
projectTest(jUnitMode = JUnitMode.JUnit5) {
workingDir = rootDir
useJUnitPlatform { }
val kotlinVersion = version
doFirst {
val defaultMavenLocal = Paths.get(System.getProperty("user.home"), ".m2", "repository").toAbsolutePath()
val mavenLocal = System.getProperty("maven.repo.local") ?: defaultMavenLocal
systemProperty("maven.repo.local", mavenLocal)
systemProperty("kotlin.version", version)
systemProperty("kotlin.version", kotlinVersion)
}
}