From 8b9f40d63b5949806725934e6ca03fc7d02c52e9 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 6 Sep 2023 16:45:28 +0700 Subject: [PATCH] fix: Adds copy task for graphviz.dat to epl build --- plantuml-epl/build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plantuml-epl/build.gradle.kts b/plantuml-epl/build.gradle.kts index 7e31a865e..729396a60 100644 --- a/plantuml-epl/build.gradle.kts +++ b/plantuml-epl/build.gradle.kts @@ -41,7 +41,7 @@ sourceSets { srcDirs("build/generated/sjpp") } resources { - srcDirs("build/generated/sjpp") + srcDirs("build/generated/sjpp", "build/copiedResources") include("**/graphviz.dat") include("**/*.png") include("**/*.svg") @@ -110,6 +110,13 @@ val preprocessLicenceAntTask by tasks.registering() { "header" to project.layout.buildDirectory.file("../epl-license.txt").get().asFile.absolutePath ) } + project.copy { + includeEmptyDirs = false + from(project.layout.buildDirectory.dir("sources/sjpp/java")) { + include("**/graphviz.dat") + } + into(project.layout.buildDirectory.dir("copiedResources")) + } } } @@ -125,7 +132,6 @@ tasks.named("sourcesJar"){ dependsOn(preprocessLicenceAntTask) } - publishing { publications.create("maven") { from(components["java"])