Skip to content

Commit 077e0cf

Browse files
committed
Replace obsolete sonatype parent by <distributionManagement>
1 parent 156aef0 commit 077e0cf

1 file changed

Lines changed: 63 additions & 6 deletions

File tree

pom.xml

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2020
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2121
<modelVersion>4.0.0</modelVersion>
22-
<parent>
23-
<groupId>org.sonatype.oss</groupId>
24-
<artifactId>oss-parent</artifactId>
25-
<version>7</version>
26-
</parent>
2722

2823
<groupId>com.google.testparameterinjector</groupId>
2924
<artifactId>test-parameter-injector</artifactId>
@@ -54,7 +49,7 @@
5449

5550
<developers>
5651
<developer>
57-
<id>jnyman</id>
52+
<id>nymanjens</id>
5853
<name>Jens Nyman</name>
5954
<email>jnyman@google.com</email>
6055
<organization>Google Inc.</organization>
@@ -88,6 +83,18 @@
8883
<system>GitHub Issues</system>
8984
<url>http://github.com/google/testparameterinjector/issues</url>
9085
</issueManagement>
86+
<distributionManagement>
87+
<snapshotRepository>
88+
<id>sonatype-nexus-snapshots</id>
89+
<name>Sonatype Nexus Snapshots</name>
90+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
91+
</snapshotRepository>
92+
<repository>
93+
<id>sonatype-nexus-staging</id>
94+
<name>Nexus Release Repository</name>
95+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
96+
</repository>
97+
</distributionManagement>
9198

9299
<prerequisites>
93100
<maven>3.0.3</maven>
@@ -176,4 +183,54 @@
176183
</plugin>
177184
</plugins>
178185
</build>
186+
187+
<profiles>
188+
<profile>
189+
<id>sonatype-oss-release</id>
190+
<build>
191+
<plugins>
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-source-plugin</artifactId>
195+
<version>3.2.1</version>
196+
<executions>
197+
<execution>
198+
<id>attach-sources</id>
199+
<goals>
200+
<goal>jar-no-fork</goal>
201+
</goals>
202+
</execution>
203+
</executions>
204+
</plugin>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-javadoc-plugin</artifactId>
208+
<version>3.2.0</version>
209+
<executions>
210+
<execution>
211+
<id>attach-javadocs</id>
212+
<goals>
213+
<goal>jar</goal>
214+
</goals>
215+
</execution>
216+
</executions>
217+
</plugin>
218+
<plugin>
219+
<groupId>org.apache.maven.plugins</groupId>
220+
<artifactId>maven-gpg-plugin</artifactId>
221+
<version>1.1</version>
222+
<executions>
223+
<execution>
224+
<id>sign-artifacts</id>
225+
<phase>verify</phase>
226+
<goals>
227+
<goal>sign</goal>
228+
</goals>
229+
</execution>
230+
</executions>
231+
</plugin>
232+
</plugins>
233+
</build>
234+
</profile>
235+
</profiles>
179236
</project>

0 commit comments

Comments
 (0)