From 8417f23d3e76dcaaa37909138bd4dfd87b30983e Mon Sep 17 00:00:00 2001 From: soloturn Date: Sun, 13 Feb 2022 12:47:46 +0100 Subject: [PATCH] gradle, github publish plantuml-pdf jar plantuml-pdf-.jar is not signed at the moment. --- .github/scripts/release-gradle-snapshot.sh | 1 + .github/scripts/release-gradle.sh | 13 +++++++------ .github/workflows/ci-gradle.yml | 6 +++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/scripts/release-gradle-snapshot.sh b/.github/scripts/release-gradle-snapshot.sh index 6e02588b4..600a92b94 100755 --- a/.github/scripts/release-gradle-snapshot.sh +++ b/.github/scripts/release-gradle-snapshot.sh @@ -19,6 +19,7 @@ ln -s "../publications/maven/pom-default.xml" "${RELEASE_DIR}/pla ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT.jar" ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT-javadoc.jar" ln -s "../libs/plantuml-${POM_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT-sources.jar" +ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-pdf-SNAPSHOT.jar" if [[ -e "build/publications/maven/module.json.asc" ]]; then # signatures are optional so that forked repos can release snapshots without needing a gpg signing key diff --git a/.github/scripts/release-gradle.sh b/.github/scripts/release-gradle.sh index bd9311c92..bc6fcc3d7 100755 --- a/.github/scripts/release-gradle.sh +++ b/.github/scripts/release-gradle.sh @@ -6,15 +6,16 @@ RELEASE_DIR="build/github_release" mkdir "${RELEASE_DIR}" -ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar" -ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar" -ln -s "../libs/plantuml-${POM_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar" +ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar" +ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar" +ln -s "../libs/plantuml-${POM_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar" +ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar" if [[ -e "build/publications/maven/module.json.asc" ]]; then # signatures are optional so that forked repos can release snapshots without needing a gpg signing key - ln -s "../libs/plantuml-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar.asc" - ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar.asc" - ln -s "../libs/plantuml-${POM_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar.asc" + ln -s "../libs/plantuml-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar.asc" + ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar.asc" + ln -s "../libs/plantuml-${POM_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar.asc" fi gh release create \ diff --git a/.github/workflows/ci-gradle.yml b/.github/workflows/ci-gradle.yml index c58947790..d1aac455b 100644 --- a/.github/workflows/ci-gradle.yml +++ b/.github/workflows/ci-gradle.yml @@ -114,7 +114,11 @@ jobs: run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties - name: Build artifacts - run: gradle -q clean build generateMetadataFileForMavenPublication generatePomFileForMavenPublication -x test + run: | + gradle -q clean build \ + pdfJar \ + generateMetadataFileForMavenPublication generatePomFileForMavenPublication \ + -x test - name: Setup gpg if: env.ARTIFACT_SIGNING_KEY