From 8c5d6f1abe79d04ec7544d234bdb2223d05d1606 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 21 Aug 2018 17:16:06 +0200 Subject: [PATCH] Make build of sonar-docs cacheable --- server/sonar-docs/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.39.5