mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
gradle, sign plantuml-pdf.jar, and gh upload
This commit is contained in:
parent
8015ed1285
commit
2c44343fad
1
.github/scripts/release-gradle-snapshot.sh
vendored
1
.github/scripts/release-gradle-snapshot.sh
vendored
@ -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"
|
||||
|
1
.github/scripts/release-gradle.sh
vendored
1
.github/scripts/release-gradle.sh
vendored
@ -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 \
|
||||
|
2
.github/workflows/ci-gradle.yml
vendored
2
.github/workflows/ci-gradle.yml
vendored
@ -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}"
|
||||
|
||||
|
@ -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()) })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user