Skip to content

Commit

Permalink
Add SBOM support (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily-Jiang authored Nov 2, 2023
1 parent add91ca commit 87cac5b
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
<version.plugin.release>3.0.0-M7</version.plugin.release>
<version.plugin.gpg>3.0.1</version.plugin.gpg>
<version.plugin.staging>1.6.13</version.plugin.staging>
<!--SBOM generation -->
<version.plugin.cyclonedx>2.7.9</version.plugin.cyclonedx>

<!-- General Properties -->
<skipChecks>false</skipChecks>
Expand Down Expand Up @@ -508,8 +510,7 @@
</configuration>
</execution>
</executions>
</plugin>

</plugin>
<!-- Release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -1089,6 +1090,37 @@
<tck.license>eftckl-1.0</tck.license>
</properties>
</profile>

<!--SBOM-->
<profile>
<!-- Generates SBOM. Skip with '-DskipSBOM'.-->
<id>sbom</id>
<activation>
<property>
<name>!skipSBOM</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<configuration>
<schemaVersion>1.4</schemaVersion>
<projectType>library</projectType>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<modules>
Expand Down

0 comments on commit 87cac5b

Please sign in to comment.