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