Skip to content

Commit 8176781

Browse files
committed
ensure BOM is signed and SBOMs get published
1 parent 2423d86 commit 8176781

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<maven.shade.plugin.version>3.6.0</maven.shade.plugin.version>
5656
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
5757
<maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
58+
<maven.central.publishing.plugin>0.7.0</maven.central.publishing.plugin>
5859

5960
<!-- Dependencies: Test -->
6061
<hamcrest.version>1.3</hamcrest.version>
@@ -499,7 +500,7 @@
499500
<plugin>
500501
<groupId>org.sonatype.central</groupId>
501502
<artifactId>central-publishing-maven-plugin</artifactId>
502-
<version>0.7.0</version>
503+
<version>${maven.central.publishing.plugin}</version>
503504
<extensions>true</extensions>
504505
<configuration>
505506
<publishingServerId>sonatype-central</publishingServerId>
@@ -566,6 +567,7 @@
566567
<configuration>
567568
<outputFormat>all</outputFormat>
568569
<outputName>${project.artifactId}-${project.version}-cyclonedx</outputName>
570+
<skipNotDeployed>false</skipNotDeployed>
569571
</configuration>
570572
</plugin>
571573
</plugins>

xmlunit-bom/pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<description>Bill of Materials (BOM) for XMLUnit</description>
2424
<url>https://www.xmlunit.org/</url>
2525

26+
<properties>
27+
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
28+
<maven.central.publishing.plugin>0.7.0</maven.central.publishing.plugin>
29+
</properties>
30+
2631
<inceptionYear>2001</inceptionYear>
2732

2833
<licenses>
@@ -116,12 +121,26 @@
116121
<plugin>
117122
<groupId>org.sonatype.central</groupId>
118123
<artifactId>central-publishing-maven-plugin</artifactId>
119-
<version>0.7.0</version>
124+
<version>${maven.central.publishing.plugin}</version>
120125
<extensions>true</extensions>
121126
<configuration>
122127
<publishingServerId>sonatype-central</publishingServerId>
123128
</configuration>
124129
</plugin>
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-gpg-plugin</artifactId>
133+
<version>${maven.gpg.plugin.version}</version>
134+
<executions>
135+
<execution>
136+
<id>sign-artifacts</id>
137+
<phase>verify</phase>
138+
<goals>
139+
<goal>sign</goal>
140+
</goals>
141+
</execution>
142+
</executions>
143+
</plugin>
125144
</plugins>
126145
</build>
127146
</profile>

0 commit comments

Comments
 (0)