Skip to content

Commit d5a0f10

Browse files
authored
Maven Central migration (#460)
* Maven Central migration * Bump org.cicirello:core to 2.7.1 * Bump org.cicirello:rho-mu to 4.2.1
1 parent 4ec0b94 commit d5a0f10

File tree

3 files changed

+31
-35
lines changed

3 files changed

+31
-35
lines changed

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
id: get_version
2020
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
2121

22-
- name: Set up JDK 17 for deploy to OSSRH
22+
- name: Set up JDK 17 for deploy to Central
2323
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'adopt'
2626
java-version: '17'
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: 11 additions & 2 deletions
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] - 2024-08-28
7+
## [Unreleased] - 2025-05-15
88

99
### Added
1010

@@ -17,13 +17,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
### Fixed
1818

1919
### Dependencies
20-
* Bump org.cicirello:rho-mu from 4.1.0 to 4.2.0
2120

2221
### CI/CD
2322

2423
### Other
2524

2625

26+
## [6.0.1] - 2025-05-15
27+
28+
### Dependencies
29+
* Bump org.cicirello:rho-mu from 4.1.0 to 4.2.1
30+
* Bump org.cicirello:core from 2.7.0 to 2.7.1
31+
32+
### Other
33+
* Migrated deployment from the old OSSRH to the new Central.
34+
35+
2736
## [6.0.0] - 2024-07-25
2837

2938
### Added

pom.xml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<distribution>repo</distribution>
3131
<comments>
3232
JavaPermutationTools (JPT): A library for computation on permutations and sequences.
33-
Copyright (C) 2005-2024 Vincent A. Cicirello.
33+
Copyright (C) 2005-2025 Vincent A. Cicirello.
3434

3535
JavaPermutationTools is free software: you can redistribute it and/or modify
3636
it under the terms of the GNU General Public License as published by
@@ -65,32 +65,19 @@
6565

6666
<profiles>
6767
<profile>
68-
<id>ossrhDeploy</id>
69-
<distributionManagement>
70-
<repository>
71-
<id>ossrh</id>
72-
<name>Central Repository OSSRH</name>
73-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
74-
</repository>
75-
<snapshotRepository>
76-
<id>ossrh</id>
77-
<name>Central Repository OSSRH</name>
78-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
79-
</snapshotRepository>
80-
</distributionManagement>
81-
<build>
82-
<plugins>
83-
<plugin>
84-
<groupId>org.sonatype.plugins</groupId>
85-
<artifactId>nexus-staging-maven-plugin</artifactId>
86-
<version>1.7.0</version>
87-
<extensions>true</extensions>
88-
<configuration>
89-
<serverId>ossrh</serverId>
90-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
91-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
92-
</configuration>
93-
</plugin>
68+
<id>centralDeploy</id>
69+
<build>
70+
<plugins>
71+
<plugin>
72+
<groupId>org.sonatype.central</groupId>
73+
<artifactId>central-publishing-maven-plugin</artifactId>
74+
<version>0.7.0</version>
75+
<extensions>true</extensions>
76+
<configuration>
77+
<publishingServerId>central</publishingServerId>
78+
<autoPublish>true</autoPublish>
79+
</configuration>
80+
</plugin>
9481
<plugin>
9582
<groupId>org.apache.maven.plugins</groupId>
9683
<artifactId>maven-gpg-plugin</artifactId>
@@ -221,12 +208,12 @@
221208
<dependency>
222209
<groupId>org.cicirello</groupId>
223210
<artifactId>rho-mu</artifactId>
224-
<version>4.2.0</version>
211+
<version>4.2.1</version>
225212
</dependency>
226213
<dependency>
227214
<groupId>org.cicirello</groupId>
228215
<artifactId>core</artifactId>
229-
<version>2.7.0</version>
216+
<version>2.7.1</version>
230217
</dependency>
231218
</dependencies>
232219

@@ -283,7 +270,7 @@
283270
<link>https://rho-mu.cicirello.org/api</link>
284271
<link>https://core.cicirello.org/api</link>
285272
</links>
286-
<bottom><![CDATA[Copyright &copy; 2005-2024 <a href=\"https://www.cicirello.org/\" target=_top>Vincent A. Cicirello</a>. All rights reserved.]]></bottom>
273+
<bottom><![CDATA[Copyright &copy; 2005-2025 <a href=\"https://www.cicirello.org/\" target=_top>Vincent A. Cicirello</a>. All rights reserved.]]></bottom>
287274
</configuration>
288275
</plugin>
289276
<plugin>

0 commit comments

Comments
 (0)