aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/build.gradle
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-08-21 17:16:06 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-27 20:21:58 +0200
commit8c5d6f1abe79d04ec7544d234bdb2223d05d1606 (patch)
tree90c8d28c306a2b5ee67a3adeece430a781062796 /server/sonar-docs/build.gradle
parent96836ee48e2dc69220c139ef351ee376396ca47e (diff)
downloadsonarqube-8c5d6f1abe79d04ec7544d234bdb2223d05d1606.tar.gz
sonarqube-8c5d6f1abe79d04ec7544d234bdb2223d05d1606.zip
Make build of sonar-docs cacheable
Diffstat (limited to 'server/sonar-docs/build.gradle')
-rw-r--r--server/sonar-docs/build.gradle4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle
index 2eda44a721d..da6ca1ed14a 100644
--- a/server/sonar-docs/build.gradle
+++ b/server/sonar-docs/build.gradle
@@ -10,7 +10,9 @@ group = 'com.sonarsource.sonarqube'
yarn_run {
inputs.dir('src').withPathSensitivity(PathSensitivity.RELATIVE)
- inputs.files('gatsby-config.js', 'gatsby-node.js', 'package.json', 'yarn.lock')
+ ['gatsby-config.js', 'gatsby-node.js', 'package.json', 'yarn.lock'].each {
+ inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
+ }
outputs.dir('public')
outputs.cacheIf { true }