Skip to content

Commit fc37ba6

Browse files
authored
GLSP-1562: Switch to central portal maven publishing (#258)
Also fix minor warning in targetplatforms project
1 parent 474ae6b commit fc37ba6

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

pom.xml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<maven.resources.version>3.3.1</maven.resources.version>
5858
<maven.shade.version>3.6.0</maven.shade.version>
5959
<maven.source.version>3.3.1</maven.source.version>
60-
<maven.surefire.version>3.3.1</maven.surefire.version>
60+
<maven.surefire.version>3.5.3</maven.surefire.version>
6161
<tycho.version>4.0.8</tycho.version>
6262
<versions.maven.version>2.17.1</versions.maven.version>
6363

@@ -79,15 +79,21 @@
7979

8080

8181
<!-- Release Dependencies for M2 -->
82-
<nexus.maven.version>1.6.13</nexus.maven.version>
82+
<central.publishing.version>0.8.0</central.publishing.version>
8383
<maven.gpg.version>1.6</maven.gpg.version>
8484
</properties>
8585

8686
<pluginRepositories>
8787
<pluginRepository>
88-
<id>sonatype</id>
89-
<name>Sonatype</name>
90-
<url>https://oss.sonatype.org/content/groups/public</url>
88+
<name>Central Portal Snapshots</name>
89+
<id>central-portal-snapshots</id>
90+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
91+
<releases>
92+
<enabled>false</enabled>
93+
</releases>
94+
<snapshots>
95+
<enabled>true</enabled>
96+
</snapshots>
9197
</pluginRepository>
9298
</pluginRepositories>
9399

@@ -278,13 +284,6 @@
278284
</dependency>
279285
</dependencies>
280286

281-
<pluginRepositories>
282-
<pluginRepository>
283-
<id>sonatype</id>
284-
<name>Sonatype</name>
285-
<url>https://oss.sonatype.org/content/groups/public</url>
286-
</pluginRepository>
287-
</pluginRepositories>
288287

289288
<build>
290289
<plugins>
@@ -360,22 +359,24 @@
360359

361360
<distributionManagement>
362361
<snapshotRepository>
363-
<id>ossrh</id>
364-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
362+
<id>central</id>
363+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
365364
</snapshotRepository>
366365
</distributionManagement>
367366
<build>
368367
<plugins>
369368
<!-- To release to Sonatype/Maven central -->
370369
<plugin>
371-
<groupId>org.sonatype.plugins</groupId>
372-
<artifactId>nexus-staging-maven-plugin</artifactId>
373-
<version>${nexus.maven.version}</version>
370+
<groupId>org.sonatype.central</groupId>
371+
<artifactId>central-publishing-maven-plugin</artifactId>
372+
<version>${central.publishing.version}</version>
374373
<extensions>true</extensions>
375-
<configuration>
376-
<serverId>ossrh</serverId>
377-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
378-
</configuration>
374+
<configuration>
375+
<publishingServerId>central</publishingServerId>
376+
<autoPublish>true</autoPublish>
377+
<waitUntil>published</waitUntil>
378+
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
379+
</configuration>
379380
</plugin>
380381
<!-- To generate javadoc -->
381382

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

0 commit comments

Comments
 (0)