Skip to content

Commit 145cde5

Browse files
committed
Added OSSRH release configuration
1 parent c793548 commit 145cde5

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

pom.xml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<groupId>org.sonatype.oss</groupId>
1313
<artifactId>oss-parent</artifactId>
14-
<version>7</version>
14+
<version>9</version>
1515
</parent>
1616

1717
<licenses>
@@ -40,6 +40,17 @@
4040
<url>[email protected]:lightbody/browsermob-proxy.git</url>
4141
</scm>
4242

43+
<distributionManagement>
44+
<snapshotRepository>
45+
<id>ossrh</id>
46+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
47+
</snapshotRepository>
48+
<repository>
49+
<id>ossrh</id>
50+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
51+
</repository>
52+
</distributionManagement>
53+
4354
<properties>
4455
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4556
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -61,7 +72,6 @@
6172
</profile>
6273
<profile>
6374
<id>release</id>
64-
6575
<build>
6676
<plugins>
6777
<plugin>
@@ -106,6 +116,17 @@
106116
</execution>
107117
</executions>
108118
</plugin>
119+
<plugin>
120+
<groupId>org.apache.maven.plugins</groupId>
121+
<artifactId>maven-release-plugin</artifactId>
122+
<version>2.5.1</version>
123+
<configuration>
124+
<autoVersionSubmodules>true</autoVersionSubmodules>
125+
<useReleaseProfile>false</useReleaseProfile>
126+
<releaseProfiles>release</releaseProfiles>
127+
<goals>deploy</goals>
128+
</configuration>
129+
</plugin>
109130
</plugins>
110131
</build>
111132
</profile>
@@ -174,6 +195,16 @@
174195
</executions>
175196
</plugin>
176197
</plugins>
198+
199+
<pluginManagement>
200+
<plugins>
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-gpg-plugin</artifactId>
204+
<version>1.6</version>
205+
</plugin>
206+
</plugins>
207+
</pluginManagement>
177208
</build>
178209
<dependencies>
179210

0 commit comments

Comments
 (0)