Skip to content

Commit 5c8e6cc

Browse files
authored
Migrate publishing to Sonatype Central Publisher Portal (#62)
https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/#process-to-migrate Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
1 parent 6abcb26 commit 5c8e6cc

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
echo -e "$MAVEN_GPG_SIGN_KEY" | gpg --batch --import -
2525
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys $gpgkey
2626
rm -rf $HOME/.m2/settings.xml
27-
echo -e "<settings>\n<servers>\n<server>\n<id>ossrh</id>\n<username>$username</username>\n<password>$password</password>\n</server>\n</servers>\n</settings>" > $HOME/.m2/settings.xml
27+
echo -e "<settings>\n<servers>\n<server>\n<id>central</id>\n<username>$username</username>\n<password>$password</password>\n</server>\n</servers>\n</settings>" > $HOME/.m2/settings.xml
2828
- name: Deploy
2929
run: |
3030
mvn clean deploy -Dgpg.passphrase=$passphrase

gauge-archetype-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.thoughtworks.gauge.maven</groupId>
77
<artifactId>gauge-mvn-archetypes</artifactId>
8-
<version>1.6.0</version>
8+
<version>1.6.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

gauge-archetype-selenium/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.thoughtworks.gauge.maven</groupId>
77
<artifactId>gauge-mvn-archetypes</artifactId>
8-
<version>1.6.0</version>
8+
<version>1.6.1</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

pom.xml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.thoughtworks.gauge.maven</groupId>
77
<artifactId>gauge-mvn-archetypes</artifactId>
8-
<version>1.6.0</version>
8+
<version>1.6.1</version>
99
<packaging>pom</packaging>
1010

1111
<name>Gauge Maven Archetypes</name>
@@ -102,14 +102,13 @@
102102
</plugin>
103103

104104
<plugin>
105-
<groupId>org.sonatype.plugins</groupId>
106-
<artifactId>nexus-staging-maven-plugin</artifactId>
107-
<version>1.7.0</version>
105+
<groupId>org.sonatype.central</groupId>
106+
<artifactId>central-publishing-maven-plugin</artifactId>
107+
<version>0.7.0</version>
108108
<extensions>true</extensions>
109109
<configuration>
110-
<serverId>ossrh</serverId>
111-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
112-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
110+
<publishingServerId>central</publishingServerId>
111+
<autoPublish>true</autoPublish>
113112
</configuration>
114113
</plugin>
115114

@@ -125,17 +124,6 @@
125124
</pluginManagement>
126125
</build>
127126

128-
<distributionManagement>
129-
<snapshotRepository>
130-
<id>ossrh</id>
131-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
132-
</snapshotRepository>
133-
<repository>
134-
<id>ossrh</id>
135-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
136-
</repository>
137-
</distributionManagement>
138-
139127
<developers>
140128
<developer>
141129
<name>Kashish Munjal</name>

0 commit comments

Comments
 (0)