Skip to content

Commit 3392277

Browse files
committed
migrate to new maven central publishing process
1 parent 9077db9 commit 3392277

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.mvn/local-settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959

6060
<servers>
6161
<server>
62-
<id>maven-central-nexus</id>
63-
<username>${env.SONATYPE_USERNAME}</username>
64-
<password>${env.SONATYPE_PASSWORD}</password>
62+
<id>central</id>
63+
<username>${env.SONATYPE_CENTRAL_TOKEN_USER}</username>
64+
<password>${env.SONATYPE_CENTRAL_TOKEN_PASSWORD}</password>
6565
</server>
6666
</servers>
6767
</settings>

.mvn/maven.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--settings=.mvn/local-settings.xml
2-
-Djira.service.management.license=
3-
-Dconfluence.license=
2+
-Djira.service.management.license=ab
3+
-Dconfluence.license=b

pom.xml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<artifactId>kotlin-atlassian-client</artifactId>
88
<name>kotlin-atlassian-client</name>
99
<groupId>com.linked-planet.client</groupId>
10-
<version>0.14.13</version>
10+
<version>0.14.14-SNAPSHOT</version>
1111
<description>Provides clients for jira and insight functionality.</description>
1212
<packaging>pom</packaging>
1313

@@ -350,23 +350,15 @@
350350
</plugin>
351351

352352
<!-- DEPLOYMENT -->
353-
<!-- see https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
353+
<!-- see https://central.sonatype.org/publish/publish-portal-maven/ -->
354354
<plugin>
355-
<groupId>org.sonatype.plugins</groupId>
356-
<artifactId>nexus-staging-maven-plugin</artifactId>
357-
<executions>
358-
<execution>
359-
<id>default-deploy</id>
360-
<phase>deploy</phase>
361-
<goals>
362-
<goal>deploy</goal>
363-
</goals>
364-
</execution>
365-
</executions>
355+
<groupId>org.sonatype.central</groupId>
356+
<artifactId>central-publishing-maven-plugin</artifactId>
357+
<version>0.7.0</version>
358+
<extensions>true</extensions>
366359
<configuration>
367-
<serverId>maven-central-nexus</serverId>
368-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
369-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
360+
<publishingServerId>central</publishingServerId>
361+
<autoPublish>true</autoPublish>
370362
</configuration>
371363
</plugin>
372364
</plugins>

0 commit comments

Comments
 (0)