Skip to content

Commit d837722

Browse files
committed
Merge branch '2.x' into 3.x
2 parents 072fde0 + 8e908ac commit d837722

2 files changed

Lines changed: 6 additions & 48 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'temurin'
3030
java-version: ${{ matrix.java_version }}
3131
cache: 'maven'
32-
server-id: sonatype-nexus-snapshots
32+
server-id: central-snapshots
3333
server-username: CI_DEPLOY_USERNAME
3434
server-password: CI_DEPLOY_PASSWORD
3535
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -43,8 +43,7 @@ jobs:
4343
- name: Deploy snapshot
4444
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '17' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4545
env:
46-
# 17-Jun-2024, tatu: Do NOT use v3 credentials since namespace still "com.fasterxml"
47-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
48-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
46+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
47+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
4948
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5049
run: ./mvnw -B -ff -DskipTests -ntp source:jar deploy

pom.xml

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,7 @@ https://stackoverflow.com/questions/16302247/maven-property-project-artifact-sel
7171

7272
<!-- Alas, need to include snapshot reference since otherwise can not find
7373
snapshot of parent... -->
74-
<!-- 13-Jul-2022, tatu: This gets tricky; we need to publish via OLD repo, as per
75-
here, but resolve dependency of "jackson-base" from the NEW repo.
76-
-->
7774
<distributionManagement>
78-
<snapshotRepository>
79-
<id>sonatype-nexus-snapshots</id>
80-
<name>Sonatype Nexus Snapshots</name>
81-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
82-
</snapshotRepository>
83-
<repository>
84-
<id>sonatype-nexus-staging</id>
85-
<name>Nexus Release Repository</name>
86-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
87-
</repository>
88-
</distributionManagement>
89-
90-
<!-- 13-May-2025, tatu: And yet more! Tools.jackson comes from the new
91-
Sonatype Central Portal: so yet more needed
92-
-->
9375
<repositories>
9476
<!-- New Sonatype Central Portal (2025/5+) snapshots -->
9577
<repository>
@@ -99,37 +81,14 @@ https://stackoverflow.com/questions/16302247/maven-property-project-artifact-sel
9981
<releases><enabled>false</enabled></releases>
10082
<snapshots><enabled>true</enabled></snapshots>
10183
</repository>
102-
<!-- "Old new" Snapshot repo -->
103-
<repository>
104-
<id>sonatype-nexus-new-snapshots</id>
105-
<name>Sonatype Nexus Snapshots</name>
106-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
107-
<releases><enabled>false</enabled></releases>
108-
<snapshots><enabled>true</enabled></snapshots>
109-
</repository>
11084
</repositories>
11185

11286
<build>
11387
<plugins>
114-
<!-- 13-May-2025, tatu: Left in place until "com.fasterxml" namespace moved
115-
to Sonatype Central Portal
116-
-->
117-
<!-- 08-Nov-2019, tatu: Copied from
118-
https://github.com/stephenc/git-timestamp-maven-plugin/blob/master/pom.xml#L327-L337
119-
-->
88+
<!-- 26-May-2025: Enable Sonatype Central Portal publishing -->
12089
<plugin>
121-
<groupId>org.sonatype.plugins</groupId>
122-
<artifactId>nexus-staging-maven-plugin</artifactId>
123-
<version>1.7.0</version>
124-
<extensions>true</extensions>
125-
<configuration>
126-
<serverId>sonatype-nexus-staging</serverId>
127-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
128-
<!-- 07-Mar-2025, tatu: NOTE! "OLD" staging profile since we are
129-
still under "com.fasterxml" unlike all other components
130-
-->
131-
<stagingProfileId>b34f19b9cc6224</stagingProfileId>
132-
</configuration>
90+
<groupId>org.sonatype.central</groupId>
91+
<artifactId>central-publishing-maven-plugin</artifactId>
13392
</plugin>
13493

13594
<!-- 20-Oct-2020, tatu: [annotations#178] copy full LICENSE from main dir -->

0 commit comments

Comments
 (0)