Skip to content

Commit 7b465af

Browse files
committed
Modernize pom.
1 parent f0c151a commit 7b465af

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

pom.xml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3-
<parent>
4-
<groupId>org.sonatype.oss</groupId>
5-
<artifactId>oss-parent</artifactId>
6-
<version>7</version>
7-
</parent>
8-
93
<groupId>com.google.gwt.gwtmockito</groupId>
104
<artifactId>gwtmockito-parent</artifactId>
115
<version>1.1.9-SNAPSHOT</version>
@@ -46,6 +40,17 @@
4640
</developer>
4741
</developers>
4842

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+
4954
<dependencyManagement>
5055
<dependencies>
5156
<dependency>
@@ -96,6 +101,17 @@
96101
<build>
97102
<pluginManagement>
98103
<plugins>
104+
<plugin>
105+
<groupId>org.sonatype.plugins</groupId>
106+
<artifactId>nexus-staging-maven-plugin</artifactId>
107+
<version>1.6.7</version>
108+
<extensions>true</extensions>
109+
<configuration>
110+
<serverId>ossrh</serverId>
111+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
112+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
113+
</configuration>
114+
</plugin>
99115
<plugin>
100116
<groupId>org.apache.maven.plugins</groupId>
101117
<artifactId>maven-compiler-plugin</artifactId>
@@ -108,6 +124,7 @@
108124
<plugin>
109125
<groupId>org.apache.maven.plugins</groupId>
110126
<artifactId>maven-gpg-plugin</artifactId>
127+
<version>1.5</version>
111128
<executions>
112129
<execution>
113130
<id>sign-artifacts</id>
@@ -118,6 +135,19 @@
118135
</execution>
119136
</executions>
120137
</plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-source-plugin</artifactId>
141+
<version>2.2.1</version>
142+
<executions>
143+
<execution>
144+
<id>attach-sources</id>
145+
<goals>
146+
<goal>jar-no-fork</goal>
147+
</goals>
148+
</execution>
149+
</executions>
150+
</plugin>
121151
<plugin>
122152
<groupId>org.apache.maven.plugins</groupId>
123153
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)