From e7ce9449de1fdf6905baf4b2b49e1644bf6978e7 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Thu, 13 Sep 2018 15:05:45 +0200 Subject: [PATCH] reporter-web-app: Support bootstrapping NPM and Yarn NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin installs Yarn via NPM, see also [1] [2]. For this installation to work the download flag needs to be set. Also set a fixed NPM version for the reproducibility of builds. [1] https://github.com/srs/gradle-node-plugin/issues/175 [2] https://github.com/srs/gradle-node-plugin/pull/186 --- reporter-web-app/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reporter-web-app/build.gradle b/reporter-web-app/build.gradle index 892a4107aebfc..eda9f70e4c923 100644 --- a/reporter-web-app/build.gradle +++ b/reporter-web-app/build.gradle @@ -5,7 +5,10 @@ plugins { node { version = '8.11.4' yarnVersion = '1.9.4' - + // Installing NPM is needed for installing Yarn because the Gradle Node plugin installs Yarn via NPM. + npmVersion = '6.4.0' + // Setting download flag is required for bootstrapping NPM. + download = true nodeModulesDir = file("${project.projectDir}/node") }