Browse Source

feat(BUILD-1436): sbom plugin

pull/130/head
Julien Carsique 2 years ago
parent
commit
2d1926fcd1
No account linked to committer's email address
1 changed files with 39 additions and 2 deletions
  1. 39
    2
      pom.xml

+ 39
- 2
pom.xml View File

@@ -38,6 +38,10 @@
<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>
@@ -105,6 +109,27 @@
<filtering>true</filtering>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<projectType>application</projectType>
<includeBomSerialNumber>true</includeBomSerialNumber>
<includeCompileScope>true</includeCompileScope>
<includeProvidedScope>true</includeProvidedScope>
<includeRuntimeScope>true</includeRuntimeScope>
<includeSystemScope>true</includeSystemScope>
<includeTestScope>true</includeTestScope>
<includeLicenseText>false</includeLicenseText>
<outputFormat>json</outputFormat>
<outputName>bom</outputName>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -189,9 +214,21 @@
<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>


Loading…
Cancel
Save