mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-29 08:13:53 +00:00
commit
fe4c5cb957
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 \
|
||||||
|
23
.github/workflows/ci-gradle.yml
vendored
23
.github/workflows/ci-gradle.yml
vendored
@ -119,28 +119,13 @@ jobs:
|
|||||||
generateMetadataFileForMavenPublication generatePomFileForMavenPublication \
|
generateMetadataFileForMavenPublication generatePomFileForMavenPublication \
|
||||||
-x test
|
-x test
|
||||||
|
|
||||||
- name: Setup gpg
|
|
||||||
if: env.ARTIFACT_SIGNING_KEY
|
|
||||||
id: gpg
|
|
||||||
env:
|
|
||||||
ARTIFACT_SIGNING_KEY: ${{ secrets.ARTIFACT_SIGNING_KEY }}
|
|
||||||
run: |
|
|
||||||
echo "Importing key ..."
|
|
||||||
echo "${ARTIFACT_SIGNING_KEY}" | gpg --batch --import --import-options import-show
|
|
||||||
|
|
||||||
echo "Getting key id ..."
|
|
||||||
key_id="$(echo "${ARTIFACT_SIGNING_KEY}" | gpg --batch --show-keys --with-colons | awk -F: '$1 == "sec" { print $5 }')"
|
|
||||||
echo "::set-output name=key_id::${key_id}"
|
|
||||||
|
|
||||||
- name: Sign artifacts
|
- name: Sign artifacts
|
||||||
if: env.GPG_KEYNAME
|
if: env.ORG_GRADLE_PROJECT_signingKey
|
||||||
env:
|
env:
|
||||||
GPG_KEYNAME: ${{ steps.gpg.outputs.key_id }}
|
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ARTIFACT_SIGNING_KEY }}
|
||||||
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
||||||
run: |
|
run: |
|
||||||
gradle sign \
|
gradle -q signMavenPublication signPdfJar
|
||||||
"-Psigning.gnupg.keyName=${GPG_KEYNAME}" \
|
|
||||||
"-Psigning.gnupg.passphrase=${GPG_PASSPHRASE}"
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -28,7 +28,7 @@ dependencies {
|
|||||||
testImplementation("org.assertj:assertj-core:3.22.0")
|
testImplementation("org.assertj:assertj-core:3.22.0")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
||||||
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
|
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
|
||||||
"pdfRuntimeOnly"("org.apache.xmlgraphics:fop:2.6")
|
"pdfRuntimeOnly"("org.apache.xmlgraphics:fop:2.7")
|
||||||
"pdfRuntimeOnly"("org.apache.xmlgraphics:batik-all:1.14")
|
"pdfRuntimeOnly"("org.apache.xmlgraphics:batik-all:1.14")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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,17 @@ tasks.create("pdfJar", Jar::class) {
|
|||||||
with(tasks.jar.get())
|
with(tasks.jar.get())
|
||||||
archiveAppendix.set("pdf")
|
archiveAppendix.set("pdf")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signing {
|
||||||
|
if (hasProperty("signing.gnupg.keyName") && hasProperty("signing.gnupg.passphrase")) {
|
||||||
|
useGpgCmd()
|
||||||
|
} else if (hasProperty("signingKey") && hasProperty("signingPassword")) {
|
||||||
|
val signingKey: String? by project
|
||||||
|
val signingPassword: String? by project
|
||||||
|
useInMemoryPgpKeys(signingKey, signingPassword)
|
||||||
|
}
|
||||||
|
if (hasProperty("signing.gnupg.passphrase") || hasProperty("signingPassword")) {
|
||||||
|
sign(publishing.publications["maven"])
|
||||||
|
sign(closureOf<SignOperation> { sign(pdfJar.get()) })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
4
pom.xml
4
pom.xml
@ -226,7 +226,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>versions-maven-plugin</artifactId>
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
<version>2.8.1</version>
|
<version>2.9.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
@ -289,7 +289,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.xmlgraphics</groupId>
|
<groupId>org.apache.xmlgraphics</groupId>
|
||||||
<artifactId>fop</artifactId>
|
<artifactId>fop</artifactId>
|
||||||
<version>2.6</version>
|
<version>2.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.xmlgraphics</groupId>
|
<groupId>org.apache.xmlgraphics</groupId>
|
||||||
|
Loading…
Reference in New Issue
Block a user