From: Evgeny Mandrikov Date: Tue, 14 May 2019 11:38:50 +0000 (+0200) Subject: Fix Gradle caching of "yarn_run" tasks X-Git-Tag: 7.8~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3b8e8c94e5e462d5d2d14bc8613eba3e657287c;p=sonarqube.git Fix Gradle caching of "yarn_run" tasks ":server:sonar-vsts:yarn_run" and ":private:sonar-bitbucketcloud:yarn_run" must declared as inputs all files which are used from "server/sonar-web/src/main/js". --- diff --git a/server/sonar-vsts/build.gradle b/server/sonar-vsts/build.gradle index 83ee5dbcd59..e76f8102b25 100644 --- a/server/sonar-vsts/build.gradle +++ b/server/sonar-vsts/build.gradle @@ -11,7 +11,12 @@ sonarqube { } yarn_run { - ['config', 'public', 'scripts', 'src'].each { + ['config', 'public', 'scripts', 'src', + '../sonar-web/src/main/js/api', + '../sonar-web/src/main/js/app', + '../sonar-web/src/main/js/components', + '../sonar-web/src/main/js/helpers' + ].each { inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE) } ['babel.config.js', 'package.json', 'tsconfig.json', 'yarn.lock'].each { @@ -19,7 +24,6 @@ yarn_run { } outputs.dir('build/webapp') outputs.cacheIf { true } - dependsOn(yarn, ':server:sonar-web:yarn') args = ['build'] } build.dependsOn(yarn_run)