]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
BUILD-1443 sbom plugin (#130)
authorJulien Carsique <julien.carsique@sonarsource.com>
Wed, 13 Apr 2022 20:52:51 +0000 (22:52 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Apr 2022 20:52:51 +0000 (22:52 +0200)
* feat(BUILD-1436): sbom plugin
* feat(BUILD-1436): upgrade to parent 61.0.147

Co-authored-by: tomverin
Reviewed-by: dbmeneses
pom.xml

diff --git a/pom.xml b/pom.xml
index e2aa273079064a3b8d2f06286a5f72410921ad6d..586721247c7f9b9454411972b1f9ce1c55259b0c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.sonarsource.parent</groupId>
     <artifactId>parent</artifactId>
-    <version>60.0.52</version>
+    <version>61.0.147</version>
   </parent>
 
   <groupId>org.sonarsource.scanner.cli</groupId>
     <system>JIRA</system>
     <url>https://jira.sonarsource.com/browse/SQSCANNER</url>
   </issueManagement>
+  <ciManagement>
+    <system>cirrus-ci</system>
+    <url>https://cirrus-ci.com/github/SonarSource/sonar-scanner-cli</url>
+  </ciManagement>
 
   <properties>
     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
@@ -53,7 +57,7 @@
     <jre.dirname.macosx>jdk-11.0.14.1+1-jre/Contents/Home</jre.dirname.macosx>
 
     <!-- Release: enable publication to Bintray -->
-    <artifactsToPublish>${project.groupId}:${project.artifactId}:zip,${project.groupId}:${project.artifactId}:zip:linux,${project.groupId}:${project.artifactId}:zip:windows,${project.groupId}:${project.artifactId}:zip:macosx</artifactsToPublish>
+    <artifactsToPublish>${project.groupId}:${project.artifactId}:zip,${project.groupId}:${project.artifactId}:zip:linux,${project.groupId}:${project.artifactId}:zip:windows,${project.groupId}:${project.artifactId}:zip:macosx,${project.groupId}:${project.artifactId}:json:cyclonedx</artifactsToPublish>
 
     <maven.compiler.release>8</maven.compiler.release>
   </properties>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
-         <source>8</source>
+         <source>8</source>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.cyclonedx</groupId>
+        <artifactId>cyclonedx-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>makeAggregateBom</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>