From d582935e04a373957d222d77327872f36776b8c6 Mon Sep 17 00:00:00 2001 From: soloturn Date: Sun, 13 Feb 2022 14:54:25 +0100 Subject: [PATCH] gradle pdfJar produces plantuml-pdf-.jar --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index a4d7f1656..e5f7a5f43 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -116,3 +116,14 @@ signing { 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") +}