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}.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}-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-${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
|
fi
|
||||||
|
|
||||||
echo -n "${DATE_TIME_UTC}" > "${RELEASE_DIR}/plantuml-SNAPSHOT.timestamp"
|
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}.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}-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}-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
|
fi
|
||||||
|
|
||||||
gh release create \
|
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_KEYNAME: ${{ steps.gpg.outputs.key_id }}
|
||||||
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
||||||
run: |
|
run: |
|
||||||
gradle sign \
|
gradle -q signMavenPublication signPdfJar \
|
||||||
"-Psigning.gnupg.keyName=${GPG_KEYNAME}" \
|
"-Psigning.gnupg.keyName=${GPG_KEYNAME}" \
|
||||||
"-Psigning.gnupg.passphrase=${GPG_PASSPHRASE}"
|
"-Psigning.gnupg.passphrase=${GPG_PASSPHRASE}"
|
||||||
|
|
||||||
|
@ -110,14 +110,7 @@ tasks.test {
|
|||||||
testLogging.showStandardStreams = true
|
testLogging.showStandardStreams = true
|
||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
val pdfJar by tasks.registering(Jar::class) {
|
||||||
if (hasProperty("signing.gnupg.passphrase")) {
|
|
||||||
useGpgCmd()
|
|
||||||
sign(publishing.publications["maven"])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.create("pdfJar", Jar::class) {
|
|
||||||
group = "build" // OR for example, "build"
|
group = "build" // OR for example, "build"
|
||||||
description = "Assembles a jar containing dependencies to create PDFs."
|
description = "Assembles a jar containing dependencies to create PDFs."
|
||||||
manifest.attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
|
manifest.attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
|
||||||
@ -127,3 +120,11 @@ tasks.create("pdfJar", Jar::class) {
|
|||||||
with(tasks.jar.get())
|
with(tasks.jar.get())
|
||||||
archiveAppendix.set("pdf")
|
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