From 858903fec33a078dc45763f49e3f24ad0e69f898 Mon Sep 17 00:00:00 2001 From: soloturn Date: Sun, 13 Feb 2022 00:34:33 +0100 Subject: [PATCH] pdf optional dependencies --- build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index e73e47908..a4d7f1656 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,6 +18,9 @@ description = "PlantUML" java { withSourcesJar() withJavadocJar() + registerFeature("pdf") { + usingSourceSet(sourceSets["main"]) + } } dependencies { @@ -25,6 +28,8 @@ dependencies { testImplementation("org.assertj:assertj-core:3.22.0") testImplementation("org.junit.jupiter:junit-jupiter:5.8.2") testImplementation("org.scilab.forge:jlatexmath:1.0.7") + "pdfRuntimeOnly"("org.apache.xmlgraphics:fop:2.6") + "pdfRuntimeOnly"("org.apache.xmlgraphics:batik-all:1.14") } repositories {