aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/build.gradle
diff options
context:
space:
mode:
authorJulien Carsique <julien.carsique@sonarsource.com>2022-09-02 17:55:10 +0200
committersonartech <sonartech@sonarsource.com>2022-09-08 20:03:10 +0000
commit1ea0fba721acca7bfbdbed82cdeaf779e39ca85f (patch)
tree211417b557c45a64190d00a2c4ea123111b4c101 /sonar-application/build.gradle
parentce320ad409b8490103ff8c3fb68deea9c8288158 (diff)
downloadsonarqube-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/build.gradle')
-rw-r--r--sonar-application/build.gradle8
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
+ }
}
}
}