From e0169fa6c7c70fd4a6c690836ee10c525be73f63 Mon Sep 17 00:00:00 2001 From: Mark Iantorno Date: Fri, 15 Jul 2022 11:10:26 -0400 Subject: [PATCH] Adding autoclosing for sonatype publishing (#3798) --- hapi-fhir-checkstyle/pom.xml | 46 +++++++++++++-- hapi-fhir-spring-boot/pom.xml | 43 +++++++++++++- hapi-tinder-test/pom.xml | 43 +++++++++++++- pom.xml | 103 ++++++++++++++++++---------------- 4 files changed, 182 insertions(+), 53 deletions(-) diff --git a/hapi-fhir-checkstyle/pom.xml b/hapi-fhir-checkstyle/pom.xml index 8abfdbe6766..1b58f737eb2 100644 --- a/hapi-fhir-checkstyle/pom.xml +++ b/hapi-fhir-checkstyle/pom.xml @@ -36,8 +36,46 @@ - - - - + + + + release + + false + + deployToSonatype + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + attach-javadoc + + jar + + + + + + + + diff --git a/hapi-fhir-spring-boot/pom.xml b/hapi-fhir-spring-boot/pom.xml index cea15c37df8..e6dea8e8605 100644 --- a/hapi-fhir-spring-boot/pom.xml +++ b/hapi-fhir-spring-boot/pom.xml @@ -41,6 +41,47 @@ - + + + + release + + false + + deployToSonatype + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + attach-javadoc + + jar + + + + + + + + diff --git a/hapi-tinder-test/pom.xml b/hapi-tinder-test/pom.xml index 97a7e775b91..a9db3a2641f 100644 --- a/hapi-tinder-test/pom.xml +++ b/hapi-tinder-test/pom.xml @@ -495,5 +495,46 @@ - + + + + release + + false + + deployToSonatype + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + attach-javadoc + + jar + + + + + + + + diff --git a/pom.xml b/pom.xml index 69ab5aa112b..e89d1077c41 100644 --- a/pom.xml +++ b/pom.xml @@ -2024,17 +2024,6 @@ spring-boot-maven-plugin ${spring_boot_version} - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - ossrh - https://oss.sonatype.org/ - true - - org.basepom.maven duplicate-finder-maven-plugin @@ -2743,41 +2732,6 @@ - - SIGN_ARTIFACTS - - - gpg.passphrase - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - --pinentry-mode - loopback - - - - - - - - ALLMODULES @@ -3033,6 +2987,61 @@ - + + ossrh-repo + + false + + deployToSonatype + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + ${gpg.keyname} + ${gpg.keyname} + + --pinentry-mode + loopback + + + + + + + +