diff options
author | Julien Carsique <julien.carsique@sonarsource.com> | 2022-09-02 17:55:10 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-08 20:03:10 +0000 |
commit | 1ea0fba721acca7bfbdbed82cdeaf779e39ca85f (patch) | |
tree | 211417b557c45a64190d00a2c4ea123111b4c101 /sonar-application | |
parent | ce320ad409b8490103ff8c3fb68deea9c8288158 (diff) | |
download | sonarqube-1ea0fba721acca7bfbdbed82cdeaf779e39ca85f.tar.gz sonarqube-1ea0fba721acca7bfbdbed82cdeaf779e39ca85f.zip |
BUILD-1745 execute only on CI and main branch or explicit call
fix: remove sonar-web from bom inputs.files, a dedicated yarn bom build is to be implemented if needed
Diffstat (limited to 'sonar-application')
-rw-r--r-- | sonar-application/build.gradle | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index 59f09a9d780..9f24ddbccd3 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -340,7 +340,7 @@ cyclonedxBom { outputs.file bomFile } tasks.cyclonedxBom { - inputs.files(configurations.runtimeClasspath, configurations.web, configurations.shutdowner, configurations.jdbc_mssql, + inputs.files(configurations.runtimeClasspath, configurations.shutdowner, configurations.jdbc_mssql, configurations.jdbc_postgresql, configurations.jdbc_h2, configurations.bundledPlugin_deps, configurations.cyclonedx) } def bomArtifact = artifacts.add('archives', bomFile.get().asFile) { @@ -354,8 +354,10 @@ publishing { mavenJava(MavenPublication) { artifact zip } - mavenJava(MavenPublication) { - artifact bomArtifact + if (enableBom) { + mavenJava(MavenPublication) { + artifact bomArtifact + } } } } |