[Build] Fix configuration cache issue on running :js:js.tests:test

#KT-55839 Fixed
This commit is contained in:
Alexander.Likhachev
2023-01-10 01:07:51 +01:00
committed by Space Team
parent 1451ef74c2
commit 202fe9e41e
+4 -1
View File
@@ -271,8 +271,11 @@ d8Plugin.version = v8Version
fun Test.setupV8() {
dependsOn(d8Plugin.setupTaskProvider)
val v8ExecutablePath = project.provider {
d8Plugin.requireConfigured().executablePath.absolutePath
}
doFirst {
systemProperty("javascript.engine.path.V8", d8Plugin.requireConfigured().executablePath.absolutePath)
systemProperty("javascript.engine.path.V8", v8ExecutablePath.get())
}
}