Skip to content

Commit d4c2465

Browse files
committed
Configure central deployment plugin
1 parent 72db751 commit d4c2465

File tree

2 files changed

+34
-53
lines changed

2 files changed

+34
-53
lines changed

pom.xml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@
4141
<url>[email protected]:vietj/childprocess-vertx-ext.git</url>
4242
</scm>
4343

44-
<distributionManagement>
45-
<snapshotRepository>
46-
<id>sonatype-nexus-snapshots</id>
47-
<name>Sonatype Snapshots Repository</name>
48-
<url>${sonatype.snapshotRepository}</url>
49-
</snapshotRepository>
50-
<repository>
51-
<id>sonatype-nexus-staging</id>
52-
<name>Sonatype Release Repository</name>
53-
<url>${sonatype.releaseRepository}</url>
54-
</repository>
55-
</distributionManagement>
56-
5744
<developers>
5845
<developer>
5946
<name>Julien Viet</name>
@@ -74,10 +61,11 @@
7461
<!-- Plugin versions -->
7562
<maven.compiler.plugin.version>3.7.0</maven.compiler.plugin.version>
7663
<maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
77-
<maven.source.plugin.version>3.0.1</maven.source.plugin.version>
64+
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
7865
<maven.resource.plugin.version>2.7</maven.resource.plugin.version>
66+
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
7967
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
80-
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
68+
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
8169
<maven.dependency.plugin.version>2.10</maven.dependency.plugin.version>
8270
<maven.clean.plugin.version>3.0.0</maven.clean.plugin.version>
8371
<maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
@@ -91,6 +79,7 @@
9179
<maven.dependency.versions.check.plugin.version>2.0.2</maven.dependency.versions.check.plugin.version>
9280
<maven.asciidoctor.plugin.version>2.1.0</maven.asciidoctor.plugin.version>
9381
<maven.build.helper.maven.plugin.version>3.0.0</maven.build.helper.maven.plugin.version>
82+
<maven.central.publishing.maven.plugin.version>0.7.0</maven.central.publishing.maven.plugin.version>
9483

9584
<stack.version>4.5.13</stack.version>
9685
<generated.dir>${project.basedir}/src/main/generated</generated.dir>
@@ -226,6 +215,11 @@
226215
<artifactId>maven-dependency-plugin</artifactId>
227216
<version>${maven.dependency.plugin.version}</version>
228217
</plugin>
218+
<plugin>
219+
<groupId>org.apache.maven.plugins</groupId>
220+
<artifactId>maven-source-plugin</artifactId>
221+
<version>${maven.source.plugin.version}</version>
222+
</plugin>
229223
<plugin>
230224
<groupId>org.apache.maven.plugins</groupId>
231225
<artifactId>maven-install-plugin</artifactId>
@@ -308,28 +302,24 @@
308302
<link>http://vertx.io/docs/apidocs/</link>
309303
</links>
310304
</configuration>
305+
<executions>
306+
<execution>
307+
<id>attach-javadocs</id>
308+
<goals>
309+
<goal>jar</goal>
310+
</goals>
311+
</execution>
312+
</executions>
311313
</plugin>
312314
<plugin>
313-
<artifactId>maven-assembly-plugin</artifactId>
314-
<version>${maven.assembly.plugin.version}</version>
315+
<groupId>org.apache.maven.plugins</groupId>
316+
<artifactId>maven-jar-plugin</artifactId>
315317
<executions>
316318
<execution>
317-
<id>package-sources</id>
318-
<phase>package</phase>
319+
<id>attach-test-jar</id>
319320
<goals>
320-
<goal>single</goal>
321+
<goal>test-jar</goal>
321322
</goals>
322-
<configuration>
323-
<attach>true</attach>
324-
<archive>
325-
<!-- Need a manifest to avoid empty archive -->
326-
<manifest>
327-
</manifest>
328-
</archive>
329-
<descriptors>
330-
<descriptor>src/assembly/sources.xml</descriptor>
331-
</descriptors>
332-
</configuration>
333323
</execution>
334324
</executions>
335325
</plugin>
@@ -348,16 +338,26 @@
348338
</plugin>
349339
<plugin>
350340
<groupId>org.apache.maven.plugins</groupId>
351-
<artifactId>maven-jar-plugin</artifactId>
341+
<artifactId>maven-gpg-plugin</artifactId>
352342
<executions>
353343
<execution>
354-
<id>attach-test-jar</id>
344+
<id>sign-artifacts</id>
345+
<phase>verify</phase>
355346
<goals>
356-
<goal>test-jar</goal>
347+
<goal>sign</goal>
357348
</goals>
358349
</execution>
359350
</executions>
360351
</plugin>
352+
<plugin>
353+
<groupId>org.sonatype.central</groupId>
354+
<artifactId>central-publishing-maven-plugin</artifactId>
355+
<version>${maven.central.publishing.maven.plugin.version}</version>
356+
<extensions>true</extensions>
357+
<configuration>
358+
<publishingServerId>central</publishingServerId>
359+
</configuration>
360+
</plugin>
361361
</plugins>
362362
</build>
363363

src/assembly/sources.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)