Skip to content

Commit b5de568

Browse files
authored
Merge pull request #231 from cicirello/maven-migration
Maven migration
2 parents ae6d49e + 55c4c0a commit b5de568

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
distribution: 'adopt'
2626
java-version: '11'
27-
server-id: ossrh
27+
server-id: central
2828
server-username: MAVEN_USERNAME
2929
server-password: MAVEN_CENTRAL_TOKEN
3030
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
@@ -37,7 +37,7 @@ jobs:
3737
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
3838

3939
- name: Publish to Apache Maven Central
40-
run: mvn deploy -PossrhDeploy
40+
run: mvn deploy -PcentralDeploy
4141
env:
4242
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
4343
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased] - 2023-08-07
7+
## [Unreleased] - 2025-05-15
88

99
### Added
1010

@@ -21,6 +21,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Other
2222

2323

24+
## [3.1.6] - 2025-05-15
25+
26+
### Other
27+
* Migrated deployment from the old OSSRH to the new Central.
28+
29+
2430
## [3.1.5] - 2023-08-07
2531

2632
### Fixed

pom.xml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<distribution>repo</distribution>
3333
<comments>
3434
Interactive Bin Packing.
35-
Copyright (C) 2008, 2010, 2020-2023 Vincent A. Cicirello.
35+
Copyright (C) 2008, 2010, 2020-2025 Vincent A. Cicirello.
3636

3737
This program is free software: you can redistribute it and/or modify
3838
it under the terms of the GNU General Public License as published by
@@ -67,30 +67,17 @@
6767

6868
<profiles>
6969
<profile>
70-
<id>ossrhDeploy</id>
71-
<distributionManagement>
72-
<repository>
73-
<id>ossrh</id>
74-
<name>Central Repository OSSRH</name>
75-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
76-
</repository>
77-
<snapshotRepository>
78-
<id>ossrh</id>
79-
<name>Central Repository OSSRH</name>
80-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
81-
</snapshotRepository>
82-
</distributionManagement>
70+
<id>centralDeploy</id>
8371
<build>
8472
<plugins>
8573
<plugin>
86-
<groupId>org.sonatype.plugins</groupId>
87-
<artifactId>nexus-staging-maven-plugin</artifactId>
88-
<version>1.7.0</version>
74+
<groupId>org.sonatype.central</groupId>
75+
<artifactId>central-publishing-maven-plugin</artifactId>
76+
<version>0.7.0</version>
8977
<extensions>true</extensions>
9078
<configuration>
91-
<serverId>ossrh</serverId>
92-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
93-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
79+
<publishingServerId>central</publishingServerId>
80+
<autoPublish>true</autoPublish>
9481
</configuration>
9582
</plugin>
9683
<plugin>

0 commit comments

Comments
 (0)