aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/build.gradle
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2021-11-23 15:05:26 +0100
committersonartech <sonartech@sonarsource.com>2021-11-23 20:03:35 +0000
commitc38d06c6c539c6c66255824a6ff42c63cad10af9 (patch)
tree5fa3be298de08654f265526ad173a2b5063c9e01 /server/sonar-docs/build.gradle
parent39b94d8d74ba61879e5ebd87b29307ddc7a5297d (diff)
downloadsonarqube-c38d06c6c539c6c66255824a6ff42c63cad10af9.tar.gz
sonarqube-c38d06c6c539c6c66255824a6ff42c63cad10af9.zip
SONAR-15682 Fix sonar-docs analyzer docs extraction
Diffstat (limited to 'server/sonar-docs/build.gradle')
-rw-r--r--server/sonar-docs/build.gradle5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle
index 843e3f1ae07..cf4ccec3ee4 100644
--- a/server/sonar-docs/build.gradle
+++ b/server/sonar-docs/build.gradle
@@ -60,7 +60,7 @@ task yarn_run(type: Exec) {
inputs.property('version', docsVersion)
inputs.file(rootProject.file('build.gradle'));
inputs.dir('src').withPathSensitivity(PathSensitivity.RELATIVE)
- ['gatsby-config.js', 'gatsby-node.js', 'package.json', 'yarn.lock', 'tsconfig.json'].each {
+ ['build.gradle', 'gatsby-config.js', 'gatsby-node.js', 'package.json', 'yarn.lock', 'tsconfig.json'].each {
inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
}
outputs.dir('public')
@@ -69,6 +69,7 @@ task yarn_run(type: Exec) {
environment += [ GATSBY_DOCS_VERSION: docsVersion ]
commandLine osAdaptiveCommand(['npm', 'run', 'build'])
}
+yarn_run.dependsOn(extractAnalyzerDocFiles)
build.dependsOn(yarn_run)
// To clean outputs outside of "build" directory:
@@ -127,7 +128,7 @@ task zip(type: Zip) {
}
}
zip.dependsOn yarn_run
-assemble.dependsOn zip, extractAnalyzerDocFiles
+assemble.dependsOn zip
publishing {
publications {