mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-29 00:06:34 +00:00
Merge pull request #917 from soloturn/pdfjar
create plantuml-pdf.jar and upload it to github
This commit is contained in:
commit
fce81ce267
1
.github/scripts/release-gradle-snapshot.sh
vendored
1
.github/scripts/release-gradle-snapshot.sh
vendored
@ -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}.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}-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-${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
|
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
|
# signatures are optional so that forked repos can release snapshots without needing a gpg signing key
|
||||||
|
13
.github/scripts/release-gradle.sh
vendored
13
.github/scripts/release-gradle.sh
vendored
@ -6,15 +6,16 @@ RELEASE_DIR="build/github_release"
|
|||||||
|
|
||||||
mkdir "${RELEASE_DIR}"
|
mkdir "${RELEASE_DIR}"
|
||||||
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.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}-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}-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
|
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
|
# 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}.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"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gh release create \
|
gh release create \
|
||||||
|
7
.github/workflows/ci-gradle.yml
vendored
7
.github/workflows/ci-gradle.yml
vendored
@ -94,7 +94,6 @@ jobs:
|
|||||||
|
|
||||||
upload:
|
upload:
|
||||||
needs: [ workflow_config, test ]
|
needs: [ workflow_config, test ]
|
||||||
if: needs.workflow_config.outputs.do_release == 'true' || needs.workflow_config.outputs.do_snapshot_release == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
@ -114,7 +113,11 @@ jobs:
|
|||||||
run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
|
run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
|
||||||
|
|
||||||
- name: Build artifacts
|
- 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
|
- name: Setup gpg
|
||||||
if: env.ARTIFACT_SIGNING_KEY
|
if: env.ARTIFACT_SIGNING_KEY
|
||||||
|
@ -116,3 +116,14 @@ signing {
|
|||||||
sign(publishing.publications["maven"])
|
sign(publishing.publications["maven"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.create("pdfJar", 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"
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
val dependencies = configurations.runtimeClasspath.get().map(::zipTree)
|
||||||
|
from(dependencies)
|
||||||
|
with(tasks.jar.get())
|
||||||
|
archiveAppendix.set("pdf")
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user