aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-vsts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-vsts')
-rw-r--r--server/sonar-vsts/build.gradle15
1 files changed, 7 insertions, 8 deletions
diff --git a/server/sonar-vsts/build.gradle b/server/sonar-vsts/build.gradle
index f5ce996e76a..078b68814c1 100644
--- a/server/sonar-vsts/build.gradle
+++ b/server/sonar-vsts/build.gradle
@@ -17,15 +17,14 @@ node {
}
yarn_run {
- inputs.dir('config')
- inputs.dir('public')
- inputs.dir('scripts')
- inputs.dir('src')
- inputs.file('.babelrc')
- inputs.file('package.json')
- inputs.file('tsconfig.json')
- inputs.file('yarn.lock')
+ ['config', 'public', 'scripts', 'src'].each {
+ inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE)
+ }
+ ['.babelrc', 'package.json', 'tsconfig.json', 'yarn.lock'].each {
+ inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
+ }
outputs.dir('build/webapp')
+ outputs.cacheIf { true }
args = ['build']
}