Skip to content

Commit e5e0605

Browse files
authored
Migrate to central sonatype publishing (#47)
* Update to Appium 9.5.0 and Selenium 4.33.0 * Migrate to publishing to central sonatype * Update release-maven-central.yml * use temurin java distribution * Enable non-interactive, faster Maven deploy
1 parent edb8ed2 commit e5e0605

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

.github/workflows/release-maven-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
uses: actions/setup-java@v3
2020
with:
2121
java-version: "21"
22-
distribution: "adopt"
23-
server-id: ossrh
22+
distribution: "temurin"
23+
server-id: central
2424
server-username: MVN_CENTRAL_USERNAME
2525
server-password: MVN_CENTRAL_PASSWORD
2626
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Step 6 - Publish package
5656
run: |
57-
mvn -Dmaven.test.skip=true -P release -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
57+
mvn -B --no-transfer-progress -Dmaven.test.skip=true -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
5858
env:
5959
MVN_CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6060
MVN_CENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@
1919
<revision>5.0.0-SNAPSHOT</revision>
2020
</properties>
2121

22-
<distributionManagement>
23-
<snapshotRepository>
24-
<id>ossrh</id>
25-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
26-
</snapshotRepository>
27-
<repository>
28-
<id>ossrh</id>
29-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
30-
</repository>
31-
</distributionManagement>
32-
3322
<scm>
3423
<connection>scm:git:[email protected]:aquality-automation/aquality-appium-mobile-java.git</connection>
3524
<developerConnection>scm:git:[email protected]:aquality-automation/aquality-appium-mobile-java.git</developerConnection>
@@ -172,14 +161,14 @@
172161
</executions>
173162
</plugin>
174163
<plugin>
175-
<groupId>org.sonatype.plugins</groupId>
176-
<artifactId>nexus-staging-maven-plugin</artifactId>
177-
<version>1.7.0</version>
164+
<groupId>org.sonatype.central</groupId>
165+
<artifactId>central-publishing-maven-plugin</artifactId>
166+
<version>0.8.0</version>
178167
<extensions>true</extensions>
179168
<configuration>
180-
<serverId>ossrh</serverId>
181-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
182-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
169+
<publishingServerId>central</publishingServerId>
170+
<autoPublish>true</autoPublish>
171+
<waitUntil>published</waitUntil>
183172
</configuration>
184173
</plugin>
185174
</plugins>

0 commit comments

Comments
 (0)