From 786e68400cadb734aa3afdba63ea3dcdd8b9fc82 Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:27:18 +0100 Subject: [PATCH] Make sure correct tasks depend on each other --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 0456af27..3d6254e1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -77,6 +77,10 @@ dependencies { } tasks { + build { + dependsOn(shadowJar) + } + compileJava { options.release = javaVersion } @@ -119,3 +123,7 @@ publishing { } } } + +tasks.named("publishMavenJavaPublicationToMavenLocal") { + dependsOn(tasks.named("build")) +}