Skip to content

Commit 14bcd79

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents f00ccb8 + 1a4d974 commit 14bcd79

File tree

4 files changed

+19
-56
lines changed

4 files changed

+19
-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/*

chartjs-java-model/pom.xml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -56,41 +56,6 @@
5656
<skipTests>true</skipTests>
5757
</properties>
5858

59-
<repositories>
60-
<!-- The order of definitions matters. Explicitly defining central here
61-
to make sure it has the highest priority. -->
62-
<repository>
63-
<id>central</id>
64-
<url>https://repo.maven.apache.org/maven2</url>
65-
<snapshots>
66-
<enabled>false</enabled>
67-
</snapshots>
68-
</repository>
69-
</repositories>
70-
71-
<pluginRepositories>
72-
<!-- The order of definitions matters. Explicitly defining central here
73-
to make sure it has the highest priority. -->
74-
<pluginRepository>
75-
<id>central</id>
76-
<url>https://repo.maven.apache.org/maven2</url>
77-
<snapshots>
78-
<enabled>false</enabled>
79-
</snapshots>
80-
</pluginRepository>
81-
</pluginRepositories>
82-
83-
<distributionManagement>
84-
<snapshotRepository>
85-
<id>ossrh</id>
86-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
87-
</snapshotRepository>
88-
<repository>
89-
<id>ossrh</id>
90-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
91-
</repository>
92-
</distributionManagement>
93-
9459
<dependencies>
9560
<dependency>
9661
<groupId>com.fasterxml.jackson.core</groupId>
@@ -289,7 +254,7 @@
289254
</properties>
290255
</profile>
291256
<profile>
292-
<id>ossrh</id>
257+
<id>publish-sonatype-central-portal</id>
293258
<build>
294259
<plugins>
295260
<plugin>
@@ -333,16 +298,13 @@
333298
</plugin>
334299

335300
<plugin>
336-
<groupId>org.sonatype.plugins</groupId>
337-
<artifactId>nexus-staging-maven-plugin</artifactId>
338-
<version>1.7.0</version>
301+
<groupId>org.sonatype.central</groupId>
302+
<artifactId>central-publishing-maven-plugin</artifactId>
303+
<version>0.7.0</version>
339304
<extensions>true</extensions>
340305
<configuration>
341-
<serverId>ossrh</serverId>
342-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
343-
<!-- Sometimes OSSRH is really slow -->
344-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
345-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
306+
<publishingServerId>sonatype-central-portal</publishingServerId>
307+
<autoPublish>true</autoPublish>
346308
</configuration>
347309
</plugin>
348310
</plugins>

0 commit comments

Comments
 (0)