From f563296661507466bed11a0c9cc5f4aab4a17509 Mon Sep 17 00:00:00 2001 From: Matthias <56599453+12rcu@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:50:20 +0200 Subject: [PATCH] create jreleaser dir in build dir when realising if not existing --- build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index c138cde..4f848ab 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -60,6 +60,16 @@ repositories { mavenCentral() } +task("create_jreleaser_dir") { + layout.buildDirectory.dir("jreleaser").get().asFile.let { + if(!it.isDirectory) { + it.mkdirs() + } + } +} + +tasks["jreleaserFullRelease"].dependsOn("create_jreleaser_dir") + jreleaser { release { github {