From 4195e7056b9e35fc49f7168edadff18187ea2854 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 3 May 2021 23:51:48 +0430 Subject: [PATCH] fix windowsPackge not building the jar --- server/build.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 97f8c31..0babd1e 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -205,6 +205,10 @@ tasks { dependsOn("createExe") } + named("createExe") { + dependsOn("shadowJar") + } + register("downloadJre") { src("https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jre_x86-32_windows_hotspot_8u282b08.zip") dest("$buildDir/OpenJDK8U-jre_x86-32_windows_hotspot_8u282b08.zip") @@ -222,7 +226,7 @@ tasks { } named("processResources") { - duplicatesStrategy = DuplicatesStrategy.WARN + duplicatesStrategy = DuplicatesStrategy.INCLUDE mustRunAfter(":webUI:copyBuild") }