From a5de093e58a927ce02033dbc8f715a4ec2d55064 Mon Sep 17 00:00:00 2001 From: Daniel DeGroff Date: Mon, 21 Jul 2025 18:07:03 -0600 Subject: [PATCH 1/2] switch to new maven central publishing plugin. --- pom.xml | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 357bfbd..98f9e7c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,7 @@ + @@ -15,13 +18,16 @@ - ossrh - https://oss.sonatype.org/content/repositories/snapshots + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + true + + + false + - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - @@ -41,8 +47,9 @@ - The Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0 + repo @@ -83,7 +90,7 @@ sign - Inversoft + ${gpg.keyname} @@ -123,14 +130,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true From 0d0edc163f3f68c924c3201b8493711af76a81f5 Mon Sep 17 00:00:00 2001 From: Daniel DeGroff Date: Mon, 21 Jul 2025 18:09:31 -0600 Subject: [PATCH 2/2] use POM plugin to keep deps in sync --- build.savant | 9 +++++++-- pom.xml | 16 ++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/build.savant b/build.savant index d134f0b..1b4565f 100644 --- a/build.savant +++ b/build.savant @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2023, Inversoft Inc., All Rights Reserved + * Copyright (c) 2015-2025, Inversoft Inc., All Rights Reserved */ project(group: "com.inversoft", name: "java-error", version: "2.2.3", licenses: ["ApacheV2_0"]) { workflow { @@ -35,6 +35,7 @@ file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0") java = loadPlugin(id: "org.savantbuild.plugin:java:2.0.0") idea = loadPlugin(id: "org.savantbuild.plugin:idea:2.0.0") release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0") +pom = loadPlugin(id: "org.savantbuild.plugin:pom:2.0.0") java.settings.javaVersion = "1.8" @@ -59,7 +60,7 @@ target(name: "doc", description: "Generate the project's JavaDoc", dependsOn: [" java.document() } -target(name: "int", description: "Releases a local integration build of the project", dependsOn: ["test"]) { +target(name: "int", description: "Releases a local integration build of the project", dependsOn: ["test", "pom"]) { dependency.integrate() } @@ -75,6 +76,10 @@ target(name: "idea", description: "Updates the IntelliJ IDEA module file") { idea.iml() } +target(name: "pom", description: "Updates the pom.xml file") { + pom.update() +} + target(name: "publish", description: "Publish to MVN repo", dependsOn: ["clean", "test"]) { if (new ProcessBuilder('mvn', 'deploy', '-Prelease').inheritIO().start().waitFor() != 0) { fail("deploy failed") diff --git a/pom.xml b/pom.xml index 98f9e7c..001a12d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,10 +1,6 @@ - - + --> 4.0.0 com.inversoft @@ -68,11 +64,17 @@ com.fasterxml.jackson.core jackson-annotations 2.10.1 + jar + compile + false com.inversoft jackson5 2.4.4 + jar + compile + false @@ -162,6 +164,4 @@ - - - + \ No newline at end of file