From c38d06c6c539c6c66255824a6ff42c63cad10af9 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 23 Nov 2021 15:05:26 +0100 Subject: [PATCH] SONAR-15682 Fix sonar-docs analyzer docs extraction --- server/sonar-docs/build.gradle | 5 +++-- 1 file 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 { -- 2.39.5