瀏覽代碼

Upgrade versions of nodejs and yarn

and use a consistent version across modules
tags/7.5
Simon Brandhof 5 年之前
父節點
當前提交
560aa9070d
共有 4 個檔案被更改,包括 10 行新增24 行删除
  1. 10
    0
      build.gradle
  2. 0
    8
      server/sonar-docs/build.gradle
  3. 0
    8
      server/sonar-vsts/build.gradle
  4. 0
    8
      server/sonar-web/build.gradle

+ 10
- 0
build.gradle 查看文件

@@ -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

+ 0
- 8
server/sonar-docs/build.gradle 查看文件

@@ -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')

+ 0
- 8
server/sonar-vsts/build.gradle 查看文件

@@ -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)

+ 0
- 8
server/sonar-web/build.gradle 查看文件

@@ -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 {

Loading…
取消
儲存