]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-1745 Improve bom generation time
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Tue, 30 Aug 2022 09:38:46 +0000 (11:38 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 31 Aug 2022 20:03:03 +0000 (20:03 +0000)
sonar-application/build.gradle

index 9dcb231115140c43f41941faa76f524140a3a446..6fbdd17d3ab0829b7c0a9ea3b84ac7b2217d3be7 100644 (file)
@@ -338,7 +338,9 @@ cyclonedxBom {
   includeConfigs += ["runtimeClasspath", "web", "shutdowner", "jdbc_mssql", "jdbc_postgresql", "jdbc_h2", "bundledPlugin_deps",
                      "cyclonedx"]
   outputs.file bomFile
-  outputs.upToDateWhen { false }
+}
+tasks.cyclonedxBom {
+  inputs.files(configurations.runtimeClasspath)
 }
 def bomArtifact = artifacts.add('archives', bomFile.get().asFile) {
   type 'json'