Skip to content

Commit 9473e40

Browse files
committed
Switch to Sonatype central plugin
1 parent 94d64bd commit 9473e40

File tree

1 file changed

+42
-6
lines changed

1 file changed

+42
-6
lines changed

pom.xml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
</properties>
1313

14-
<parent>
15-
<groupId>org.sonatype.oss</groupId>
16-
<artifactId>oss-parent</artifactId>
17-
<version>7</version>
18-
</parent>
19-
2014
<licenses>
2115
<license>
2216
<name>The Apache Software License, Version 2.0</name>
@@ -110,6 +104,48 @@
110104
<source>8</source>
111105
</configuration>
112106
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>2.2.1</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.sonatype.central</groupId>
122+
<artifactId>central-publishing-maven-plugin</artifactId>
123+
<version>0.7.0</version>
124+
<extensions>true</extensions>
125+
<configuration>
126+
<publishingServerId>central</publishingServerId>
127+
</configuration>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-gpg-plugin</artifactId>
132+
<version>3.1.0</version>
133+
<executions>
134+
<execution>
135+
<id>sign-artifacts</id>
136+
<phase>verify</phase>
137+
<goals>
138+
<goal>sign</goal>
139+
</goals>
140+
</execution>
141+
</executions>
142+
<configuration>
143+
<gpgArguments>
144+
<gpgArgument>--pinentry-mode</gpgArgument>
145+
<gpgArgument>loopback</gpgArgument>
146+
</gpgArguments>
147+
</configuration>
148+
</plugin>
113149
</plugins>
114150
</build>
115151

0 commit comments

Comments
 (0)