Skip to content

Commit 9595ae8

Browse files
authored
Merge pull request #148 from xdev-software/develop
Release
2 parents 76fff0e + d6523a7 commit 9595ae8

File tree

5 files changed

+23
-56
lines changed

5 files changed

+23
-56
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,22 @@ jobs:
121121
git config --global user.name "GitHub Actions"
122122
git pull
123123
124-
- name: Set up JDK OSSRH
124+
- name: Set up JDK
125125
uses: actions/setup-java@v4
126126
with: # running setup-java again overwrites the settings.xml
127127
java-version: '17'
128128
distribution: 'temurin'
129-
server-id: ossrh
129+
server-id: sonatype-central-portal
130130
server-username: MAVEN_CENTRAL_USERNAME
131131
server-password: MAVEN_CENTRAL_TOKEN
132132
gpg-passphrase: MAVEN_GPG_PASSPHRASE
133133
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
134134

135-
- name: Publish to OSSRH
136-
run: ../mvnw -B deploy -Possrh -DskipTests
135+
- name: Publish to Central Portal
136+
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
137137
env:
138-
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
139-
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
138+
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
139+
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
140140
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
141141
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
142142

.github/workflows/test-deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up JDK OSSRH
16+
- name: Set up JDK
1717
uses: actions/setup-java@v4
1818
with: # running setup-java again overwrites the settings.xml
1919
distribution: 'temurin'
2020
java-version: '17'
21-
server-id: ossrh
21+
server-id: sonatype-central-portal
2222
server-username: MAVEN_CENTRAL_USERNAME
2323
server-password: MAVEN_CENTRAL_TOKEN
2424
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2525
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2626

27-
- name: Publish to OSSRH
28-
run: ../mvnw -B deploy -Possrh -DskipTests
27+
- name: Publish to Central Portal
28+
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
2929
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
3030
env:
31-
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
32-
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
31+
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
32+
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
3333
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ hs_err_pid*
7171
.idea/*
7272
!.idea/saveactions_settings.xml
7373
!.idea/checkstyle-idea.xml
74+
!.idea/externalDependencies.xml
7475

7576
!.idea/inspectionProfiles/
7677
.idea/inspectionProfiles/*

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.0.2
2+
* Migrated deployment to _Sonatype Maven Central Portal_ [#155](https://github.com/xdev-software/standard-maven-template/issues/155)
3+
* Updated dependencies
4+
15
# 2.0.1
26
* Updated dependencies
37
* Including ``org.apache.httpcomponents.client5:httpclient5`` to ``5.4.3`` due to CVE-2025-27820

bzst-dip-java-client/pom.xml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@
6060
<junit-jupiter.version>5.12.2</junit-jupiter.version>
6161
</properties>
6262

63-
<repositories>
64-
<!-- The order of definitions matters. Explicitly defining central here
65-
to make sure it has the highest priority. -->
66-
<repository>
67-
<id>central</id>
68-
<url>https://repo.maven.apache.org/maven2</url>
69-
<snapshots>
70-
<enabled>false</enabled>
71-
</snapshots>
72-
</repository>
73-
</repositories>
74-
7563
<dependencies>
7664
<dependency>
7765
<groupId>commons-io</groupId>
@@ -167,29 +155,6 @@
167155
</dependency>
168156
</dependencies>
169157

170-
<pluginRepositories>
171-
<!-- The order of definitions matters. Explicitly defining central here
172-
to make sure it has the highest priority. -->
173-
<pluginRepository>
174-
<id>central</id>
175-
<url>https://repo.maven.apache.org/maven2</url>
176-
<snapshots>
177-
<enabled>false</enabled>
178-
</snapshots>
179-
</pluginRepository>
180-
</pluginRepositories>
181-
182-
<distributionManagement>
183-
<snapshotRepository>
184-
<id>ossrh</id>
185-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
186-
</snapshotRepository>
187-
<repository>
188-
<id>ossrh</id>
189-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
190-
</repository>
191-
</distributionManagement>
192-
193158
<build>
194159
<pluginManagement>
195160
<plugins>
@@ -300,7 +265,7 @@
300265
</build>
301266
<profiles>
302267
<profile>
303-
<id>ossrh</id>
268+
<id>publish-sonatype-central-portal</id>
304269
<build>
305270
<plugins>
306271
<plugin>
@@ -344,16 +309,13 @@
344309
</plugin>
345310

346311
<plugin>
347-
<groupId>org.sonatype.plugins</groupId>
348-
<artifactId>nexus-staging-maven-plugin</artifactId>
349-
<version>1.7.0</version>
312+
<groupId>org.sonatype.central</groupId>
313+
<artifactId>central-publishing-maven-plugin</artifactId>
314+
<version>0.7.0</version>
350315
<extensions>true</extensions>
351316
<configuration>
352-
<serverId>ossrh</serverId>
353-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
354-
<!-- Sometimes OSSRH is really slow -->
355-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
356-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
317+
<publishingServerId>sonatype-central-portal</publishingServerId>
318+
<autoPublish>true</autoPublish>
357319
</configuration>
358320
</plugin>
359321
</plugins>

0 commit comments

Comments
 (0)