Use cache-redirector to download Node.js for js.tests
This commit is contained in:
@@ -15,11 +15,15 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val nodeDir = buildDir.resolve("node")
|
val nodeDir = buildDir.resolve("node")
|
||||||
|
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
|
||||||
|
|
||||||
node {
|
node {
|
||||||
download.set(true)
|
download.set(true)
|
||||||
version.set(nodejsVersion)
|
version.set(nodejsVersion)
|
||||||
nodeProjectDir.set(nodeDir)
|
nodeProjectDir.set(nodeDir)
|
||||||
|
if (cacheRedirectorEnabled) {
|
||||||
|
distBaseUrl.set("https://cache-redirector.jetbrains.com/nodejs.org/dist")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val antLauncherJar by configurations.creating
|
val antLauncherJar by configurations.creating
|
||||||
|
|||||||
Reference in New Issue
Block a user