[Build] Fix configuration cache issue on running :js:js.tests:test
#KT-55839 Fixed
This commit is contained in:
committed by
Space Team
parent
1451ef74c2
commit
202fe9e41e
@@ -271,8 +271,11 @@ d8Plugin.version = v8Version
|
|||||||
|
|
||||||
fun Test.setupV8() {
|
fun Test.setupV8() {
|
||||||
dependsOn(d8Plugin.setupTaskProvider)
|
dependsOn(d8Plugin.setupTaskProvider)
|
||||||
|
val v8ExecutablePath = project.provider {
|
||||||
|
d8Plugin.requireConfigured().executablePath.absolutePath
|
||||||
|
}
|
||||||
doFirst {
|
doFirst {
|
||||||
systemProperty("javascript.engine.path.V8", d8Plugin.requireConfigured().executablePath.absolutePath)
|
systemProperty("javascript.engine.path.V8", v8ExecutablePath.get())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user