From 5cf1072f513d9a89f75711386442ce397b8043a9 Mon Sep 17 00:00:00 2001 From: Guus Lieben Date: Thu, 1 Aug 2024 20:21:19 +0200 Subject: [PATCH] #1110 Set up staging from root module, remove redundant 'all' profile --- .github/workflows/build.modules.yml | 2 +- .github/workflows/check.codestyle.yml | 2 +- .github/workflows/check.dependency.yml | 4 +- .github/workflows/check.license.yml | 2 +- .github/workflows/test.coverage.yml | 4 +- hartshorn-assembly/parent/pom.parent.xml | 4 +- hartshorn-assembly/pom.staging.xml | 86 --------------------- hartshorn-bom/pom.xml | 4 +- pom.xml | 98 ++++++++++++++++-------- 9 files changed, 79 insertions(+), 127 deletions(-) delete mode 100644 hartshorn-assembly/pom.staging.xml diff --git a/.github/workflows/build.modules.yml b/.github/workflows/build.modules.yml index d929c61be9..e235eb460f 100644 --- a/.github/workflows/build.modules.yml +++ b/.github/workflows/build.modules.yml @@ -14,4 +14,4 @@ jobs: java-version: 21 distribution: temurin - name: "Build (source JDK)" - run: mvn clean install -DskipTests -P ci,all + run: mvn clean install -DskipTests -P ci diff --git a/.github/workflows/check.codestyle.yml b/.github/workflows/check.codestyle.yml index c97af40677..a08fc439e6 100644 --- a/.github/workflows/check.codestyle.yml +++ b/.github/workflows/check.codestyle.yml @@ -15,4 +15,4 @@ jobs: java-version: 21 distribution: temurin - name: Check code style - run: mvn clean install -DskipTests -P ci,all -Dcheckstyle.skip=false + run: mvn clean install -DskipTests -P ci -Dcheckstyle.skip=false diff --git a/.github/workflows/check.dependency.yml b/.github/workflows/check.dependency.yml index 17f20948de..7b9f490809 100644 --- a/.github/workflows/check.dependency.yml +++ b/.github/workflows/check.dependency.yml @@ -15,9 +15,9 @@ jobs: java-version: 21 distribution: temurin - name: Prepare for dependency check - run: mvn clean install -DskipTests -P ci,all + run: mvn clean install -DskipTests -P ci - name: Analyze dependencies - run: mvn dependency-check:check -Dowasp.skip=false -DnvdApiKey=${{ secrets.NVD_API_KEY }} -P ci,all + run: mvn dependency-check:check -Dowasp.skip=false -DnvdApiKey=${{ secrets.NVD_API_KEY }} -P ci - name: Archive dependency reports uses: actions/upload-artifact@v2 if: always() diff --git a/.github/workflows/check.license.yml b/.github/workflows/check.license.yml index 57147579d6..d7d8757156 100644 --- a/.github/workflows/check.license.yml +++ b/.github/workflows/check.license.yml @@ -18,4 +18,4 @@ jobs: java-version: 21 distribution: temurin - name: Check license headers - run: mvn license:check -P ci,all + run: mvn license:check -P ci diff --git a/.github/workflows/test.coverage.yml b/.github/workflows/test.coverage.yml index a10bdc523e..e946cfa4b5 100644 --- a/.github/workflows/test.coverage.yml +++ b/.github/workflows/test.coverage.yml @@ -15,7 +15,7 @@ jobs: distribution: temurin - name: Run tests id: test - run: "mvn clean verify -P ci,all -Djacoco.haltOnFailure=true" + run: "mvn clean verify -P ci -Djacoco.haltOnFailure=true" testSourceCompat: needs: [coverage] strategy: @@ -32,5 +32,5 @@ jobs: java-version: 21 distribution: temurin - name: "Unit testing (OS: ${{ matrix.os }}, source JDK)" - run: "mvn clean verify -P ci,all -Djacoco.haltOnFailure=true" + run: "mvn clean verify -P ci -Djacoco.haltOnFailure=true" shell: bash diff --git a/hartshorn-assembly/parent/pom.parent.xml b/hartshorn-assembly/parent/pom.parent.xml index 75848580a0..6ebb79bd6d 100644 --- a/hartshorn-assembly/parent/pom.parent.xml +++ b/hartshorn-assembly/parent/pom.parent.xml @@ -5,9 +5,9 @@ org.dockbox.hartshorn - hartshorn-staging + hartshorn ${revision} - ../pom.staging.xml + ../../pom.xml Hartshorn parent diff --git a/hartshorn-assembly/pom.staging.xml b/hartshorn-assembly/pom.staging.xml deleted file mode 100644 index 305b58e8fa..0000000000 --- a/hartshorn-assembly/pom.staging.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - 4.0.0 - - - org.dockbox.hartshorn - hartshorn - ${revision} - ../pom.xml - - - hartshorn-staging - pom - ${revision} - - - - ossrh - OSSRH Staging - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - default - false - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - - - - staging - - - staging - true - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - - - false - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - ${gpg.keyname} - - - - - - - - - diff --git a/hartshorn-bom/pom.xml b/hartshorn-bom/pom.xml index 9e6e763c41..f96b930168 100644 --- a/hartshorn-bom/pom.xml +++ b/hartshorn-bom/pom.xml @@ -5,9 +5,9 @@ org.dockbox.hartshorn - hartshorn-staging + hartshorn ${revision} - ../hartshorn-assembly/pom.staging.xml + ../pom.xml Hartshorn common BOM diff --git a/pom.xml b/pom.xml index e6023cc244..28ce5df25e 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ - 0.6.0 + 0.6.1 ${revision} @@ -90,32 +90,25 @@ 1.7.0 - - - all - - true - + + hartshorn-bom + hartshorn-assembly/parent/pom.parent.xml + hartshorn-util + hartshorn-spi + hartshorn-proxy + hartshorn-proxy-javassist + hartshorn-introspect + hartshorn-introspect-reflection + hartshorn-core + hartshorn-reporting + hartshorn-hsl + hartshorn-config + hartshorn-config-jackson + hartshorn-i18n + hartshorn-assembly/pom.assembly.xml + - - hartshorn-assembly/pom.staging.xml - hartshorn-bom - hartshorn-assembly/parent/pom.parent.xml - hartshorn-util - hartshorn-spi - hartshorn-proxy - hartshorn-proxy-javassist - hartshorn-introspect - hartshorn-introspect-reflection - hartshorn-core - hartshorn-reporting - hartshorn-hsl - hartshorn-config - hartshorn-config-jackson - hartshorn-i18n - hartshorn-assembly/pom.assembly.xml - - + ci @@ -129,9 +122,58 @@ staging + + + staging + true + + + + + + ossrh + OSSRH Staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + default + false + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + ${gpg.keyname} + + + + org.sonatype.plugins nexus-staging-maven-plugin @@ -377,10 +419,6 @@ org.apache.maven.plugins maven-deploy-plugin - - - true -