aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-vsts/build.gradle
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2019-05-14 13:38:50 +0200
committerSonarTech <sonartech@sonarsource.com>2019-05-14 20:21:12 +0200
commita3b8e8c94e5e462d5d2d14bc8613eba3e657287c (patch)
tree91779ddce33c2bfdd7117c386f6072ebee9524de /server/sonar-vsts/build.gradle
parentc2b675e6f5eba113fb9f4c8fff6361bcc0b45cca (diff)
downloadsonarqube-a3b8e8c94e5e462d5d2d14bc8613eba3e657287c.tar.gz
sonarqube-a3b8e8c94e5e462d5d2d14bc8613eba3e657287c.zip
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".
Diffstat (limited to 'server/sonar-vsts/build.gradle')
-rw-r--r--server/sonar-vsts/build.gradle8
1 files changed, 6 insertions, 2 deletions
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)