Skip to content

Commit cb42999

Browse files
authored
Maven publish plugins (#18)
1 parent 6813a44 commit cb42999

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
<maven.compiler.target>1.8</maven.compiler.target>
4444
</properties>
4545

46+
<distributionManagement>
47+
<snapshotRepository>
48+
<id>ossrh</id>
49+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
50+
</snapshotRepository>
51+
<repository>
52+
<id>ossrh</id>
53+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54+
</repository>
55+
</distributionManagement>
56+
4657
<build>
4758
<directory>${project.basedir}/build</directory>
4859
<resources>
@@ -136,6 +147,46 @@
136147
</execution>
137148
</executions>
138149
</plugin>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-gpg-plugin</artifactId>
153+
<version>3.0.1</version>
154+
<executions>
155+
<execution>
156+
<id>sign-artifacts</id>
157+
<phase>verify</phase>
158+
<goals>
159+
<goal>sign</goal>
160+
</goals>
161+
<configuration>
162+
<keyname>${gpg.keyname}</keyname>
163+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
164+
<skip>true</skip> <!-- don't have a key to sign with for CI; set to false when releasing -->
165+
</configuration>
166+
</execution>
167+
</executions>
168+
</plugin>
169+
<plugin>
170+
<groupId>org.sonatype.plugins</groupId>
171+
<artifactId>nexus-staging-maven-plugin</artifactId>
172+
<version>1.6.7</version>
173+
<extensions>true</extensions>
174+
<configuration>
175+
<serverId>ossrh</serverId>
176+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
177+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
178+
</configuration>
179+
</plugin>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-release-plugin</artifactId>
183+
<version>2.5.3</version>
184+
<configuration>
185+
<checkModificationExcludes>
186+
<checkModificationExclude>pom.xml</checkModificationExclude>
187+
</checkModificationExcludes>
188+
</configuration>
189+
</plugin>
139190
</plugins>
140191
</build>
141192

0 commit comments

Comments
 (0)