Skip to content

Commit

Permalink
Add SBOM generation profile and add it to release
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <[email protected]>
  • Loading branch information
oscerd committed Jan 8, 2024
1 parent fb0bf1b commit a24fb4a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
<maven-checksum-maven-plugin.version>1.7</maven-checksum-maven-plugin.version>
<cyclonedx-maven-plugin-version>2.7.10</cyclonedx-maven-plugin-version>
</properties>

<modules>
Expand Down Expand Up @@ -371,6 +372,48 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${cyclonedx-maven-plugin-version}</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
<configuration>
<outputName>${project.artifactId}-${project.version}-sbom</outputName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sbom</id>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${cyclonedx-maven-plugin-version}</version>
<inherited>false</inherited>
<configuration>
<outputName>camel-sbom</outputName>
<outputDirectory>${project.basedir}/camel-sbom/</outputDirectory>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit a24fb4a

Please sign in to comment.