Skip to content

Commit

Permalink
Add Cyclonedx SBOM during release, #4235
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Aug 26, 2024
1 parent cdef973 commit 55eace1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<attach-sources-phase>verify</attach-sources-phase>
<build.dependenciesDirectory>${project.build.directory}/dependency</build.dependenciesDirectory>
<byte-buddy.version>1.14.15</byte-buddy.version>
<cyclonedx-maven-plugin.version>2.8.1</cyclonedx-maven-plugin.version>
<hadoop.version>3.1.0</hadoop.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<jandex.version>3.1.8</jandex.version>
Expand Down Expand Up @@ -243,6 +244,13 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<releaseProfiles>ReleaseProfile</releaseProfiles>
<arguments>-PReleaseProfile</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -610,6 +618,42 @@
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>ReleaseProfile</id>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${cyclonedx-maven-plugin.version}</version>
<configuration>
<projectType>library</projectType>
<schemaVersion>1.5</schemaVersion>
<includeBomSerialNumber>true</includeBomSerialNumber>
<includeCompileScope>true</includeCompileScope>
<includeProvidedScope>true</includeProvidedScope>
<includeRuntimeScope>true</includeRuntimeScope>
<includeSystemScope>true</includeSystemScope>
<includeTestScope>false</includeTestScope>
<includeLicenseText>false</includeLicenseText>
<outputReactorProjects>true</outputReactorProjects>
<outputFormat>json</outputFormat>
<outputName>bom</outputName>
<outputDirectory>${project.build.directory}</outputDirectory>
<verbose>false</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>makeAggregateBom</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>swt-windows</id>
<activation>
Expand Down

0 comments on commit 55eace1

Please sign in to comment.