]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15682 Fix sonar-docs analyzer docs extraction
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 23 Nov 2021 14:05:26 +0000 (15:05 +0100)
committerZipeng WU <zipeng.wu@sonarsource.com>
Mon, 29 Nov 2021 09:39:05 +0000 (10:39 +0100)
server/sonar-docs/build.gradle

index 843e3f1ae0788baa2f95ea0ba4c3ee1233a1f599..cf4ccec3ee4b0ddede178452a2ed8622c07d2004 100644 (file)
@@ -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 {