aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/build.gradle
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2018-04-06 18:54:18 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-09 20:20:44 +0200
commit18f6091bb9b381012013bf0fdf261a2300da8926 (patch)
tree167def6d471556943aec5f0170c31c26c8894aab /server/sonar-web/build.gradle
parent8f6fd0a83ebd1d1ea5fc8772502172a2bd75cce8 (diff)
downloadsonarqube-18f6091bb9b381012013bf0fdf261a2300da8926.tar.gz
sonarqube-18f6091bb9b381012013bf0fdf261a2300da8926.zip
Make yarn_run tasks cacheable
Diffstat (limited to 'server/sonar-web/build.gradle')
-rw-r--r--server/sonar-web/build.gradle16
1 files changed, 7 insertions, 9 deletions
diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle
index 8a266b18ccd..0cdcd8499c1 100644
--- a/server/sonar-web/build.gradle
+++ b/server/sonar-web/build.gradle
@@ -56,16 +56,14 @@ node {
yarn_run {
if (official) { dependsOn copyBranding }
- inputs.dir('config')
- inputs.dir('public')
- inputs.dir('scripts')
- inputs.dir('src')
- inputs.file('.babelrc')
- inputs.file('build.gradle')
- inputs.file('package.json')
- inputs.file('tsconfig.json')
- inputs.file('yarn.lock')
+ ['config', 'public', 'scripts', 'src'].each {
+ inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE)
+ }
+ ['.babelrc', 'build.gradle', 'package.json', 'tsconfig.json', 'yarn.lock'].each {
+ inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
+ }
outputs.dir(webappDir)
+ outputs.cacheIf { true }
args = ['build']
}