We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e792e3e commit f14c216Copy full SHA for f14c216
modules/util.gradle
@@ -102,6 +102,14 @@ setUpYarn {
102
scriptFile = new File(projectDir, "yarn-1.13.0.js")
103
104
doFirst {
105
+ String registry = project.findProperty("nodejs.npm.ci.registry")
106
+
107
+ if (yarnLockFile.exists() && registry) {
108
+ logger.lifecycle "Using registry {}", registry
109
110
+ yarnLockFile.text = yarnLockFile.text.replaceAll("https://registry.yarnpkg.com", registry)
111
+ }
112
113
if (userNodeModulesCacheYarnLockFile.exists() && yarnLockFile.exists() && (userNodeModulesCacheYarnLockFile.text == yarnLockFile.text)) {
114
logger.lifecycle "Restoring node_modules_cache from {}", userNodeModulesCacheDir
115
0 commit comments