From 78bd8d22eae8a1d758974b75d72e54819beb7c1f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 20 Nov 2024 11:25:36 -0500 Subject: [PATCH] GH-476: Assemble Zip for Javadocs Fixes: https://github.com/spring-projects/spring-retry/issues/476 * Add `maven-assembly-plugin` to Zip Javadocs from the `apidocs` dir into a `*-docs.zip` artifact * Modify `build-and-deploy-snapshot.yml` and `release.yml` to assign `zip.deployed=false` attribute to Zip artifacts * Also mark `docs.zip` files as `zip.type=docs` --- .../workflows/build-and-deploy-snapshot.yml | 3 ++ .github/workflows/release.yml | 3 ++ pom.xml | 30 +++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/.github/workflows/build-and-deploy-snapshot.yml b/.github/workflows/build-and-deploy-snapshot.yml index c4b266a..9faac35 100644 --- a/.github/workflows/build-and-deploy-snapshot.yml +++ b/.github/workflows/build-and-deploy-snapshot.yml @@ -35,6 +35,9 @@ jobs: folder: 'deployment-repository' signing-key: ${{ secrets.GPG_PRIVATE_KEY }} signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} + artifact-properties: | + /**/*.zip::zip.name=${{ github.event.repository.name }},zip.deployed=false + /**/*docs.zip::zip.type=docs - name: Send Notification uses: ./.github/actions/send-notification if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d7d003..4b2a05f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,9 @@ jobs: folder: 'deployment-repository' signing-key: ${{ secrets.GPG_PRIVATE_KEY }} signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} + artifact-properties: | + /**/*.zip::zip.name=${{ github.event.repository.name }},zip.deployed=false + /**/*docs.zip::zip.type=docs outputs: version: ${{ steps.build-and-publish.outputs.version }} sync-to-maven-central: diff --git a/pom.xml b/pom.xml index 1ef2a02..4a575f6 100644 --- a/pom.xml +++ b/pom.xml @@ -271,6 +271,36 @@ + + maven-assembly-plugin + 3.7.1 + + + + docs + + zip + + false + + + ${project.build.directory}/reports/apidocs + /apidocs + + + + + + + + docs-assembly + package + + single + + + +