From 221fd0126c66f8e748a5b85dc00a5fce27a09188 Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Wed, 9 Jul 2025 11:06:36 +0200 Subject: [PATCH 1/2] Switch to central-publishing-maven-plugin for publishing --- .ci/settings.xml | 7 +------ log4j-legacy-tests/pom.xml | 1 - log4j2-legacy-tests/pom.xml | 1 - logback-legacy-tests/pom.xml | 1 - pom.xml | 36 ++++++------------------------------ 5 files changed, 7 insertions(+), 39 deletions(-) diff --git a/.ci/settings.xml b/.ci/settings.xml index 3b6791ab..b0f79346 100644 --- a/.ci/settings.xml +++ b/.ci/settings.xml @@ -6,12 +6,7 @@ - sonatype-nexus-snapshots - ${env.SERVER_USERNAME} - ${env.SERVER_PASSWORD} - - - sonatype-nexus-staging + central ${env.SERVER_USERNAME} ${env.SERVER_PASSWORD} diff --git a/log4j-legacy-tests/pom.xml b/log4j-legacy-tests/pom.xml index baf8162b..a8c41704 100644 --- a/log4j-legacy-tests/pom.xml +++ b/log4j-legacy-tests/pom.xml @@ -11,7 +11,6 @@ ${project.basedir}/.. - true diff --git a/log4j2-legacy-tests/pom.xml b/log4j2-legacy-tests/pom.xml index b222a7fd..aaa3b594 100644 --- a/log4j2-legacy-tests/pom.xml +++ b/log4j2-legacy-tests/pom.xml @@ -12,7 +12,6 @@ 2.6 ${project.basedir}/.. - true diff --git a/logback-legacy-tests/pom.xml b/logback-legacy-tests/pom.xml index d24c20c7..6db286b4 100644 --- a/logback-legacy-tests/pom.xml +++ b/logback-legacy-tests/pom.xml @@ -11,7 +11,6 @@ ${project.basedir}/.. - true diff --git a/pom.xml b/pom.xml index f651fdf4..1987ba51 100644 --- a/pom.xml +++ b/pom.xml @@ -16,16 +16,6 @@ log4j-legacy-tests logback-legacy-tests jul-ecs-formatter - pom 2019 @@ -67,20 +57,8 @@ UTF-8 UTF-8 ${project.basedir} - false - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - https://oss.sonatype.org/ - - sonatype-nexus-staging - ${maven-deploy-plugin.skip} - true + central + true + log4j-legacy-tests,log4j2-legacy-tests,logback-legacy-tests From 66c6c297cac335a317943fb8c31bd2c58f0b5438 Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Wed, 9 Jul 2025 13:27:18 +0200 Subject: [PATCH 2/2] use pluginManagement section for versioning --- pom.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 1987ba51..1cfde637 100644 --- a/pom.xml +++ b/pom.xml @@ -117,7 +117,6 @@ org.sonatype.central central-publishing-maven-plugin - 0.8.0 true central @@ -290,9 +289,9 @@ 2.5.3 - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 org.codehaus.mojo