diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e269a28..853d21f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- java: [11, 17, 21]
+ java: [11, 17, 21, 24]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-java-${{ matrix.java }}
cancel-in-progress: true
@@ -29,10 +29,10 @@ jobs:
with:
cache: maven
distribution: temurin
+ # Sonar plugin needs at least Java 17 at build time
java-version: |
- 11
+ ${{ matrix.java }}
17
- 21
- name: Build with Java ${{ matrix.java }}
run: mvn --errors --batch-mode clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Djava.version=${{ matrix.java }}
- name: Sonar
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ca2aa24..614d6c1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -37,7 +37,7 @@ jobs:
distribution: "temurin"
java-version: 11
cache: "maven"
- server-id: ossrh
+ server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
@@ -51,10 +51,10 @@ jobs:
- name: Publish to Maven Central Repository
if: ${{ !inputs.skip-deploy-maven-central }}
- run: mvn --batch-mode deploy -Possrh -DstagingDescription="Deployed via GitHub workflow release.yml"
+ run: mvn --batch-mode deploy -Pcentral-publishing -DdeploymentName="GitHub workflow release.yml"
env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: Create GitHub Release
diff --git a/doc/changes/changes_2.0.3.md b/doc/changes/changes_2.0.3.md
new file mode 100644
index 0000000..62e714d
--- /dev/null
+++ b/doc/changes/changes_2.0.3.md
@@ -0,0 +1,11 @@
+# hamcrest-multiline-text-matcher 2.0.3, released 2025-05-12
+
+Codename: Update dependencies on top of 2.0.2
+
+## Summary
+
+In version 2.0.3 we updated dependencies and plugins. We also deploy to Maven Central using the new Central Portal and test with Java 24.
+
+## Changes
+
+* #13: Migrate deployment to Central Portal
diff --git a/pom.xml b/pom.xml
index 125029e..70b29f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
org.itsallcode
hamcrest-mutliline-text-matcher
- 2.0.2
+ 2.0.3
Hamcrest multi-line text matcher
This project provides a Hamcrest matcher that gives you better diagnostics for multi-line text in case of mismatches.
@@ -23,30 +23,30 @@
org.junit.jupiter
junit-jupiter-api
- 5.11.0
+ 5.12.2
test
- ossrh
+ central-publishing
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.7.0
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.7.0
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
+ validated
org.apache.maven.plugins
maven-gpg-plugin
- 3.2.5
+ 3.2.7
sign-artifacts
@@ -60,7 +60,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.3
+ 3.1.4
@@ -111,7 +111,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.13.0
+ 3.14.0
${java.version}
${java.version}
@@ -125,7 +125,7 @@
org.codehaus.mojo
license-maven-plugin
- 2.4.0
+ 2.5.0
false
true
@@ -165,7 +165,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 3.5.0
+ 3.5.3
org.apache.maven.plugins
@@ -183,7 +183,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.10.0
+ 3.11.2
attach-javadocs
@@ -208,7 +208,7 @@
org.jacoco
jacoco-maven-plugin
- 0.8.12
+ 0.8.13
@@ -247,7 +247,7 @@
org.codehaus.mojo
versions-maven-plugin
- 2.17.1
+ 2.18.0
package
@@ -274,7 +274,7 @@
org.apache.maven.plugins
maven-artifact-plugin
- 3.5.1
+ 3.6.0
verify-reproducible-build
@@ -319,15 +319,4 @@
https://github.com/itsallcode
-
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-