Skip to content

Commit f61a1c6

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

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
@@ -82,6 +82,7 @@ spring-data-eclipse-store-jpa/storage-h2.trace.db
8282
.idea/*
8383
!.idea/saveactions_settings.xml
8484
!.idea/checkstyle-idea.xml
85+
!.idea/externalDependencies.xml
8586

8687
!.idea/inspectionProfiles/
8788
.idea/inspectionProfiles/*

spring-data-eclipse-store/pom.xml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@
6161
<micro-migration.version>3.0.1</micro-migration.version>
6262
</properties>
6363

64-
<repositories>
65-
<!-- The order of definitions matters. Explicitly defining central here
66-
to make sure it has the highest priority. -->
67-
<repository>
68-
<id>central</id>
69-
<url>https://repo.maven.apache.org/maven2</url>
70-
<snapshots>
71-
<enabled>false</enabled>
72-
</snapshots>
73-
</repository>
74-
</repositories>
75-
7664
<dependencyManagement>
7765
<dependencies>
7866
<dependency>
@@ -85,18 +73,6 @@
8573
</dependencies>
8674
</dependencyManagement>
8775

88-
<pluginRepositories>
89-
<!-- The order of definitions matters. Explicitly defining central here
90-
to make sure it has the highest priority. -->
91-
<pluginRepository>
92-
<id>central</id>
93-
<url>https://repo.maven.apache.org/maven2</url>
94-
<snapshots>
95-
<enabled>false</enabled>
96-
</snapshots>
97-
</pluginRepository>
98-
</pluginRepositories>
99-
10076
<dependencies>
10177
<dependency>
10278
<groupId>org.springframework.data</groupId>
@@ -253,17 +229,6 @@
253229
</dependency>
254230
</dependencies>
255231

256-
<distributionManagement>
257-
<snapshotRepository>
258-
<id>ossrh</id>
259-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
260-
</snapshotRepository>
261-
<repository>
262-
<id>ossrh</id>
263-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
264-
</repository>
265-
</distributionManagement>
266-
267232
<build>
268233
<pluginManagement>
269234
<plugins>
@@ -372,7 +337,7 @@
372337
</build>
373338
<profiles>
374339
<profile>
375-
<id>ossrh</id>
340+
<id>publish-sonatype-central-portal</id>
376341
<build>
377342
<plugins>
378343
<plugin>
@@ -416,16 +381,13 @@
416381
</plugin>
417382

418383
<plugin>
419-
<groupId>org.sonatype.plugins</groupId>
420-
<artifactId>nexus-staging-maven-plugin</artifactId>
421-
<version>1.7.0</version>
384+
<groupId>org.sonatype.central</groupId>
385+
<artifactId>central-publishing-maven-plugin</artifactId>
386+
<version>0.7.0</version>
422387
<extensions>true</extensions>
423388
<configuration>
424-
<serverId>ossrh</serverId>
425-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
426-
<!-- Sometimes OSSRH is really slow -->
427-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
428-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
389+
<publishingServerId>sonatype-central-portal</publishingServerId>
390+
<autoPublish>true</autoPublish>
429391
</configuration>
430392
</plugin>
431393
</plugins>

0 commit comments

Comments
 (0)