1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

gradle, sign plantuml-pdf.jar, and gh upload

This commit is contained in:
soloturn 2022-02-14 10:29:34 +01:00
parent 8015ed1285
commit 2c44343fad
4 changed files with 12 additions and 9 deletions

View File

@ -28,6 +28,7 @@ if [[ -e "build/publications/maven/module.json.asc" ]]; then
ln -s "../libs/plantuml-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT.jar.asc"
ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT-javadoc.jar.asc"
ln -s "../libs/plantuml-${POM_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT-sources.jar.asc"
ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-pdf-SNAPSHOT.jar.asc"
fi
echo -n "${DATE_TIME_UTC}" > "${RELEASE_DIR}/plantuml-SNAPSHOT.timestamp"

View File

@ -16,6 +16,7 @@ if [[ -e "build/publications/maven/module.json.asc" ]]; then
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-pdf-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar.asc"
fi
gh release create \

View File

@ -138,7 +138,7 @@ jobs:
GPG_KEYNAME: ${{ steps.gpg.outputs.key_id }}
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
run: |
gradle sign \
gradle -q signMavenPublication signPdfJar \
"-Psigning.gnupg.keyName=${GPG_KEYNAME}" \
"-Psigning.gnupg.passphrase=${GPG_PASSPHRASE}"

View File

@ -110,14 +110,7 @@ tasks.test {
testLogging.showStandardStreams = true
}
signing {
if (hasProperty("signing.gnupg.passphrase")) {
useGpgCmd()
sign(publishing.publications["maven"])
}
}
tasks.create("pdfJar", Jar::class) {
val pdfJar by tasks.registering(Jar::class) {
group = "build" // OR for example, "build"
description = "Assembles a jar containing dependencies to create PDFs."
manifest.attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
@ -127,3 +120,11 @@ tasks.create("pdfJar", Jar::class) {
with(tasks.jar.get())
archiveAppendix.set("pdf")
}
signing {
if (hasProperty("signing.gnupg.passphrase")) {
useGpgCmd()
sign(publishing.publications["maven"])
sign(closureOf<SignOperation> { sign(pdfJar.get()) })
}
}