From 7fdb02589485ccb4e1ed76f0c4d06fd2f124b92d Mon Sep 17 00:00:00 2001 From: Koen Aers Date: Wed, 15 Jan 2025 14:29:52 +0100 Subject: [PATCH] HBX-2951: Backport automated releases to branch 6.6 - Add 'reports' module - Modify pom.xml with following changes/additions: * Add needed properties for the CI run * Modify the 'distributionManagement' section with the needed deployment info * Add a 'build' section to (1) generate the Maven wrapper (2) sign the artefacts to deploy (3) perform deployment to the sonatype repo (4) flatten the pom files * Add a 'profile' section for the release Signed-off-by: Koen Aers --- pom.xml | 228 ++++++++++++++++++++++++++++++++++++++++++------ reports/pom.xml | 100 +++++++++++++++++++++ 2 files changed, 300 insertions(+), 28 deletions(-) create mode 100644 reports/pom.xml diff --git a/pom.xml b/pom.xml index f3d2b8790..9ad5f3c1b 100644 --- a/pom.xml +++ b/pom.xml @@ -102,8 +102,30 @@ 19.3.0.0 9.2.1.jre8 + + 3.3.2 + 1.7.0 + 1.5.0 + + + true + true + + + ossrh + Sonatype OSSRH Releases + https://oss.sonatype.org/service/local/staging/deploy/maven2 + https://oss.sonatype.org + ossrh + Sonatype OSSRH Snapshots + https://oss.sonatype.org/content/repositories/snapshots + 11 11 + 3.9.7 @@ -224,36 +246,186 @@ - + - - false - - ossrh-releases-repository - Sonatype OSSRH Releases - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - true - - ossrh-snapshots-repository - Sonatype OSSRH Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ + ${ossrh.releases.repo.id} + ${ossrh.releases.repo.name} + ${ossrh.releases.repo.url} - - - - - ossrh-releases-repository - Sonatype OSSRH Releases - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - ossrh-snapshots-repository - Sonatype OSSRH Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - + + ${ossrh.snapshots.repo.id} + ${ossrh.snapshots.repo.name} + ${ossrh.snapshots.repo.url} + + + + + + org.apache.maven.plugins + maven-wrapper-plugin + ${maven-wrapper-plugin.version} + + ${maven.min.version} + bin + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + ${deploy.skip} + ${env.RELEASE_GPG_HOMEDIR} + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus-staging.plugin.version} + false + + ${deploy.skip} + ${ossrh.releases.repo.id} + + ${ossrh.releases.repo.baseUrl} + + 60 + + + + org.codehaus.mojo + flatten-maven-plugin + ${flatten-maven-plugin.version} + + ${project.build.directory} + + ossrh + + true + + + + flatten-pom + process-resources + + flatten + + + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + ${maven-deploy-plugin.skip} + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + + default-deploy + deploy + + + deploy + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce-java-version + + enforce + + + + + + To build this project JDK ${jdk.min.version} (or greater) is required. Please install it. + ${jdk.min.version} + + + + + + + + + + + + release + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + + + + + + build-reports-as-last-module + + + !some.property.that.will.never.exist + + + + reports + + + + + + diff --git a/reports/pom.xml b/reports/pom.xml new file mode 100644 index 000000000..e2853fd09 --- /dev/null +++ b/reports/pom.xml @@ -0,0 +1,100 @@ + + + + 4.0.0 + + org.hibernate.tool + hibernate-tools-parent + 6.3.3-SNAPSHOT + + hibernate-tools-reports + + Hibernate Tools Reports + Hibernate Tools build reports + pom + + + + org.hibernate.tool + hibernate-tools-utils + ${project.version} + + + org.hibernate.tool + hibernate-tools-orm + ${project.version} + + + org.hibernate.tool + hibernate-tools-orm-jbt + ${project.version} + + + org.hibernate.tool + hibernate-tools-maven + ${project.version} + + + org.hibernate.tool + hibernate-tools-gradle + ${project.version} + + + org.hibernate.tool + hibernate-tools-ant + ${project.version} + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + false + + + + + default-deploy + none + + + + deferred-deploy + deploy + + deploy-staged + + + + + + +