Skip to content

Commit a38a415

Browse files
committed
chore: update release plugin
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
1 parent f8a9b84 commit a38a415

1 file changed

Lines changed: 23 additions & 27 deletions

File tree

‎pom.xml‎

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0"?>
22
<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/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>org.sonatype.oss</groupId>
6-
<artifactId>oss-parent</artifactId>
7-
<version>2</version>
8-
</parent>
94

105
<groupId>com.googlecode.aviator</groupId>
116
<artifactId>aviator</artifactId>
@@ -152,6 +147,17 @@
152147
</archive>
153148
</configuration>
154149
</plugin>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-release-plugin</artifactId>
153+
<version>3.1.1</version>
154+
<configuration>
155+
<autoVersionSubmodules>true</autoVersionSubmodules>
156+
<useReleaseProfile>false</useReleaseProfile>
157+
<releaseProfiles>release</releaseProfiles>
158+
<goals>deploy</goals>
159+
</configuration>
160+
</plugin>
155161
</plugins>
156162
<pluginManagement>
157163
<plugins>
@@ -162,16 +168,6 @@
162168
</plugins>
163169
</pluginManagement>
164170
</build>
165-
<distributionManagement>
166-
<snapshotRepository>
167-
<id>oss</id>
168-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
169-
</snapshotRepository>
170-
<repository>
171-
<id>oss</id>
172-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
173-
</repository>
174-
</distributionManagement>
175171
<profiles>
176172
<profile>
177173
<id>auto-activation-for-jdk8+</id>
@@ -247,23 +243,23 @@
247243
<id>release</id>
248244
<activation>
249245
<activeByDefault>false</activeByDefault>
250-
<property>
251-
<!-- where property `performRelease` comes from? - maven-release-plugin
252-
Whether to use the release profile that adds sources and javadocs to the
253-
released artifact, if appropriate. If set to true, the release plugin sets
254-
the property "performRelease" to true, which activates the profile "release-profile",
255-
which is inherited from the super pom. Default value is: true. https://maven.apache.org/plugins-archives/maven-release-plugin-2.2.2/perform-mojo.html
256-
- All models implicitly inherit from a super-POM which added maven-source-plugin
257-
and maven-javadoc-plugin https://maven.apache.org/ref/3.0.4/maven-model-builder/super-pom.html -->
258-
<name>performRelease</name>
259-
<value>true</value>
260-
</property>
261246
</activation>
262247
<build>
263248
<plugins>
249+
<!-- Central Portal Publishing Plugin -->
250+
<plugin>
251+
<groupId>org.sonatype.central</groupId>
252+
<artifactId>central-publishing-maven-plugin</artifactId>
253+
<version>0.9.0</version>
254+
<extensions>true</extensions>
255+
<configuration>
256+
<publishingServerId>central</publishingServerId>
257+
<autoPublish>true</autoPublish>
258+
</configuration>
259+
</plugin>
264260
<plugin>
265261
<artifactId>maven-gpg-plugin</artifactId>
266-
<version>1.6</version>
262+
<version>3.2.4</version>
267263
<executions>
268264
<execution>
269265
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)