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 357bfbd..001a12d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,6 @@ - - + 4.0.0 com.inversoft @@ -15,13 +14,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 +43,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 @@ -61,11 +64,17 @@ com.fasterxml.jackson.core jackson-annotations 2.10.1 + jar + compile + false com.inversoft jackson5 2.4.4 + jar + compile + false @@ -83,7 +92,7 @@ sign - Inversoft + ${gpg.keyname} @@ -123,14 +132,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 @@ -156,6 +164,4 @@ - - - + \ No newline at end of file