Skip to content

Commit cf0f38b

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

File tree

4 files changed

+19
-75
lines changed

4 files changed

+19
-75
lines changed

.github/workflows/release.yml

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

133-
- name: Publish to OSSRH
134-
run: ../mvnw -B deploy -Possrh -DskipTests
133+
- name: Publish to Central Portal
134+
run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
135135
env:
136-
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
137-
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
136+
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
137+
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
138138
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
139139
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
140140

.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/*

spring-data-eclipse-store-migration/pom.xml

Lines changed: 6 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -54,60 +54,6 @@
5454
<lombok.version>1.18.32</lombok.version>
5555
</properties>
5656

57-
<repositories>
58-
<!-- The order of definitions matters. Explicitly defining central here
59-
to make sure it has the highest priority. -->
60-
<repository>
61-
<id>central</id>
62-
<url>https://repo.maven.apache.org/maven2</url>
63-
<snapshots>
64-
<enabled>false</enabled>
65-
</snapshots>
66-
</repository>
67-
</repositories>
68-
69-
<dependencyManagement>
70-
<dependencies>
71-
<dependency>
72-
<groupId>org.openrewrite.recipe</groupId>
73-
<artifactId>rewrite-recipe-bom</artifactId>
74-
<version>${org.openrewrite.recipe.version}</version>
75-
<type>pom</type>
76-
<scope>import</scope>
77-
</dependency>
78-
<dependency>
79-
<groupId>org.springframework.boot</groupId>
80-
<artifactId>spring-boot-dependencies</artifactId>
81-
<version>${org.springframework.boot.version}</version>
82-
<type>pom</type>
83-
<scope>import</scope>
84-
</dependency>
85-
</dependencies>
86-
</dependencyManagement>
87-
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-
100-
<distributionManagement>
101-
<snapshotRepository>
102-
<id>ossrh</id>
103-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
104-
</snapshotRepository>
105-
<repository>
106-
<id>ossrh</id>
107-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
108-
</repository>
109-
</distributionManagement>
110-
11157
<dependencies>
11258
<dependency>
11359
<groupId>org.openrewrite</groupId>
@@ -247,7 +193,7 @@
247193
</build>
248194
<profiles>
249195
<profile>
250-
<id>ossrh</id>
196+
<id>publish-sonatype-central-portal</id>
251197
<build>
252198
<plugins>
253199
<plugin>
@@ -291,16 +237,13 @@
291237
</plugin>
292238

293239
<plugin>
294-
<groupId>org.sonatype.plugins</groupId>
295-
<artifactId>nexus-staging-maven-plugin</artifactId>
296-
<version>1.7.0</version>
240+
<groupId>org.sonatype.central</groupId>
241+
<artifactId>central-publishing-maven-plugin</artifactId>
242+
<version>0.7.0</version>
297243
<extensions>true</extensions>
298244
<configuration>
299-
<serverId>ossrh</serverId>
300-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
301-
<!-- Sometimes OSSRH is really slow -->
302-
<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
303-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
245+
<publishingServerId>sonatype-central-portal</publishingServerId>
246+
<autoPublish>true</autoPublish>
304247
</configuration>
305248
</plugin>
306249
</plugins>

0 commit comments

Comments
 (0)