Skip to content

Commit 444fc39

Browse files
Merge pull request #87 from lasselindqvist/issue-86
Add distribution management
2 parents fea6614 + c035a34 commit 444fc39

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
.idea

pom.xml

+43-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@
3333
<connection>scm:git:git://github.com/wvengen/proguard-maven-plugin.git</connection>
3434
</scm>
3535

36+
<distributionManagement>
37+
<snapshotRepository>
38+
<id>ossrh</id>
39+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
40+
</snapshotRepository>
41+
<repository>
42+
<id>ossrh</id>
43+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44+
</repository>
45+
</distributionManagement>
46+
3647
<issueManagement>
3748
<system>GitHub</system>
3849
<url>https://github.com/wvengen/proguard-maven-plugin/issues</url>
@@ -151,7 +162,6 @@
151162
</execution>
152163
</executions>
153164
</plugin>
154-
155165
</plugins>
156166

157167
</build>
@@ -186,6 +196,38 @@
186196
</plugins>
187197
</reporting>
188198
<profiles>
199+
<profile>
200+
<id>release</id>
201+
<build>
202+
<plugins>
203+
<plugin>
204+
<groupId>org.apache.maven.plugins</groupId>
205+
<artifactId>maven-gpg-plugin</artifactId>
206+
<version>1.6</version>
207+
<executions>
208+
<execution>
209+
<id>sign-artifacts</id>
210+
<phase>verify</phase>
211+
<goals>
212+
<goal>sign</goal>
213+
</goals>
214+
</execution>
215+
</executions>
216+
</plugin>
217+
<plugin>
218+
<groupId>org.sonatype.plugins</groupId>
219+
<artifactId>nexus-staging-maven-plugin</artifactId>
220+
<version>1.6.7</version>
221+
<extensions>true</extensions>
222+
<configuration>
223+
<serverId>ossrh</serverId>
224+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
225+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
226+
</configuration>
227+
</plugin>
228+
</plugins>
229+
</build>
230+
</profile>
189231
<profile>
190232
<id>integration-test</id>
191233
<activation>

0 commit comments

Comments
 (0)