From 125fc238b36da588367a087f00de157b9b2a954f Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Wed, 10 Jul 2024 01:36:41 -0400 Subject: [PATCH] Update build.gradle to build JAR with dependencies --- firestar/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firestar/build.gradle b/firestar/build.gradle index 9e263eb..cd19ac5 100644 --- a/firestar/build.gradle +++ b/firestar/build.gradle @@ -28,6 +28,17 @@ java { } } +jar { + manifest { + attributes( + 'Main-Class': 'Main' + ) + } + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } +} + application { mainClass = 'Main' }