]> source.dussan.org Git - sonarqube.git/commitdiff
Upgrade versions of nodejs and yarn
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Aug 2018 15:12:37 +0000 (17:12 +0200)
committerSonarTech <sonartech@sonarsource.com>
Mon, 27 Aug 2018 18:21:57 +0000 (20:21 +0200)
and use a consistent version across modules

build.gradle
server/sonar-docs/build.gradle
server/sonar-vsts/build.gradle
server/sonar-web/build.gradle

index 4ae4c5c0cb8cc5398726ea90702f3dde4a75ddfb..9ee3e02e0ce81f9ddf86c9ef0e70d315bfa6cbc4 100644 (file)
@@ -286,6 +286,16 @@ subprojects {
     ide.dependsOn(['generateProto', 'generateTestProto'])
   }
 
+  if (file('package.json').exists()) {
+    apply plugin: 'com.moowork.node'
+
+    node {
+      version = '8.11.4'
+      yarnVersion = '1.9.4'
+      download = true
+    }
+  }
+
   if (official) {
     jar {
       // do not break incremental build on non official versions
index fde6adc800f5361c71c8749ac03d8236d587d67d..2eda44a721d5bae676873a5c92f0f263e3f51f93 100644 (file)
@@ -8,14 +8,6 @@ sonarqube {
 
 group = 'com.sonarsource.sonarqube'
 
-apply plugin: 'com.moowork.node'
-
-node {
-  version = '8.10.0'
-  yarnVersion = '1.5.1'
-  download = true
-}
-
 yarn_run {
   inputs.dir('src').withPathSensitivity(PathSensitivity.RELATIVE)
   inputs.files('gatsby-config.js', 'gatsby-node.js', 'package.json', 'yarn.lock')
index cafcaaaab9de50984a3894080e6c72347ece5957..0fcc093a369cbce253e125dbd6580639a98e2073 100644 (file)
@@ -9,14 +9,6 @@ sonarqube {
   }
 }
 
-apply plugin: 'com.moowork.node'
-
-node {
-  version = '8.10.0'
-  yarnVersion = '1.7.0'
-  download = true
-}
-
 yarn_run {
   ['config', 'public', 'scripts', 'src'].each {
     inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE)
index b6359bf0c2a7aacdfbdbd1acfc0a1396e1872db3..b8dd4e05fffc2292475f1155678fd624b7457f04 100644 (file)
@@ -9,8 +9,6 @@ sonarqube {
   }
 }
 
-apply plugin: 'com.moowork.node'
-
 configurations {
   branding
 }
@@ -49,12 +47,6 @@ task copyBranding() {
   dependsOn copyBrandingFile
 }
 
-node {
-  version = '8.10.0'
-  yarnVersion = '1.7.0'
-  download = true
-}
-
 yarn_run {
   if (official) { dependsOn copyBranding }
   ['config', 'public', 'scripts', 'src', '../sonar-docs/src'].each {