]> source.dussan.org Git - sonarqube.git/commitdiff
Make build of sonar-docs cacheable
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Aug 2018 15:16:06 +0000 (17:16 +0200)
committerSonarTech <sonartech@sonarsource.com>
Mon, 27 Aug 2018 18:21:58 +0000 (20:21 +0200)
server/sonar-docs/build.gradle

index 2eda44a721d5bae676873a5c92f0f263e3f51f93..da6ca1ed14a926e9990c84135449d8751083cfe2 100644 (file)
@@ -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 }