From c0aac8cd314aa561776741c93aabd920f7230cde Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Fri, 4 Jun 2021 14:58:19 +0200 Subject: [PATCH] added jar task to build.gradle --- Server/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Server/build.gradle b/Server/build.gradle index 983a040..857ac21 100644 --- a/Server/build.gradle +++ b/Server/build.gradle @@ -14,6 +14,20 @@ test { maxParallelForks = 1 } +var mainClassName = "uulm.teamname.marvelous.server.Server" + +jar { + manifest { + attributes "Main-Class": "$mainClassName" + } + + from { + configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it) } + } + + duplicatesStrategy = DuplicatesStrategy.EXCLUDE +} + dependencies { implementation project(':Gamelib')