Skip to content

Commit 7fffa96

Browse files
committed
setup pom for signing artifacts
1 parent 26d0ab7 commit 7fffa96

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

pom.xml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@
5252
<url>https://github.com/SingingBush/SDL/issues</url>
5353
</issueManagement>
5454

55+
<distributionManagement>
56+
<snapshotRepository>
57+
<id>ossrh</id>
58+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
59+
</snapshotRepository>
60+
<repository>
61+
<id>ossrh</id>
62+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
63+
</repository>
64+
</distributionManagement>
65+
5566
<properties>
5667
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5768
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -95,7 +106,7 @@
95106
<plugin>
96107
<groupId>org.apache.maven.plugins</groupId>
97108
<artifactId>maven-javadoc-plugin</artifactId>
98-
<version>2.10.4</version>
109+
<version>3.0.1</version>
99110
<executions>
100111
<execution>
101112
<id>attach-javadocs</id>
@@ -130,4 +141,37 @@
130141
</plugins>
131142
</build>
132143

144+
<profiles>
145+
<profile>
146+
<id>release</id>
147+
<activation>
148+
<property>
149+
<name>performRelease</name>
150+
<value>true</value>
151+
</property>
152+
</activation>
153+
<build>
154+
<plugins>
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-gpg-plugin</artifactId>
158+
<version>1.6</version>
159+
<configuration>
160+
<keyname>6E394A59C56281A1C7BCB31CBB1163024293DF16</keyname>
161+
</configuration>
162+
<executions>
163+
<execution>
164+
<id>sign-artifacts</id>
165+
<phase>package</phase>
166+
<goals>
167+
<goal>sign</goal>
168+
</goals>
169+
</execution>
170+
</executions>
171+
</plugin>
172+
</plugins>
173+
</build>
174+
</profile>
175+
</profiles>
176+
133177
</project>

0 commit comments

Comments
 (0)