Skip to content

Commit 56bb94b

Browse files
committed
Added ability to sign artifacts for release
1 parent 2b10284 commit 56bb94b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

csv-validator-parent/pom.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,45 @@
103103
</distributionManagement>
104104
</profile>
105105

106+
<profile>
107+
<id>release-sign-artifacts</id>
108+
<activation>
109+
<property>
110+
<name>performRelease</name>
111+
<value>true</value>
112+
</property>
113+
</activation>
114+
<build>
115+
<plugins>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-gpg-plugin</artifactId>
119+
<executions>
120+
<execution>
121+
<id>sign-artifacts</id>
122+
<phase>verify</phase>
123+
<goals>
124+
<goal>sign</goal>
125+
</goals>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
</plugins>
130+
</build>
131+
<distributionManagement>
132+
<snapshotRepository>
133+
<id>sonatype-nexus-snapshot-staging</id>
134+
<name>Nexus Snapshot Repository</name>
135+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
136+
</snapshotRepository>
137+
<repository>
138+
<id>sonatype-nexus-release-staging</id>
139+
<name>Nexus Release Repository</name>
140+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
141+
</repository>
142+
</distributionManagement>
143+
</profile>
144+
106145
<!-- Profile for publishing artifacts to GitHub -->
107146
<!-- See: https://github.com/digital-preservation/csv-validator/releases -->
108147
<profile>

0 commit comments

Comments
 (0)