Use cache-redirector for yarn download (KTI-577)
This commit is contained in:
committed by
teamcityserver
parent
ec04af9eea
commit
0f2e653625
@@ -1136,3 +1136,13 @@ plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin:
|
|||||||
nodeVersion = "16.2.0"
|
nodeVersion = "16.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true
|
||||||
|
if (cacheRedirectorEnabled) {
|
||||||
|
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) {
|
||||||
|
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().downloadBaseUrl =
|
||||||
|
"https://cache-redirector.jetbrains.com/github.com/yarnpkg/yarn/releases/download"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user