Skip to content

Commit eda6f17

Browse files
committed
Update to central-publishing-maven-plugin
1 parent e98f575 commit eda6f17

File tree

1 file changed

+11
-39
lines changed

1 file changed

+11
-39
lines changed

pom.xml

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.avaje</groupId>
55
<artifactId>java11-oss</artifactId>
6-
<version>4.5</version>
6+
<version>5.0</version>
77
<packaging>pom</packaging>
88
<name>java11-oss</name>
99

@@ -95,24 +95,18 @@
9595
<profiles>
9696
<profile>
9797
<id>central</id>
98-
<activation>
99-
<property>
100-
<name>performRelease</name>
101-
<value>true</value>
102-
</property>
103-
</activation>
104-
<distributionManagement>
105-
<snapshotRepository>
106-
<id>ossrh</id>
107-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
108-
</snapshotRepository>
109-
<repository>
110-
<id>ossrh</id>
111-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
112-
</repository>
113-
</distributionManagement>
11498
<build>
11599
<plugins>
100+
<plugin>
101+
<groupId>org.sonatype.central</groupId>
102+
<artifactId>central-publishing-maven-plugin</artifactId>
103+
<version>0.7.0</version>
104+
<extensions>true</extensions>
105+
<configuration>
106+
<publishingServerId>central</publishingServerId>
107+
<autoPublish>true</autoPublish>
108+
</configuration>
109+
</plugin>
116110
<plugin>
117111
<groupId>org.apache.maven.plugins</groupId>
118112
<artifactId>maven-source-plugin</artifactId>
@@ -145,28 +139,6 @@
145139
</executions>
146140
</plugin>
147141

148-
<plugin>
149-
<groupId>org.apache.maven.plugins</groupId>
150-
<artifactId>maven-release-plugin</artifactId>
151-
<version>${maven-release-plugin.version}</version>
152-
<configuration>
153-
<autoVersionSubmodules>true</autoVersionSubmodules>
154-
<goals>deploy</goals>
155-
</configuration>
156-
</plugin>
157-
158-
<plugin>
159-
<groupId>org.sonatype.plugins</groupId>
160-
<artifactId>nexus-staging-maven-plugin</artifactId>
161-
<version>1.6.13</version>
162-
<extensions>true</extensions>
163-
<configuration>
164-
<serverId>ossrh</serverId>
165-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
166-
<autoReleaseAfterClose>${nexus.staging.autoReleaseAfterClose}</autoReleaseAfterClose>
167-
</configuration>
168-
</plugin>
169-
170142
<plugin>
171143
<groupId>org.apache.maven.plugins</groupId>
172144
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)