From 9854be5949170957b0e793b474d6a7140822f811 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Thu, 13 Feb 2020 18:07:48 -0500 Subject: [PATCH] Added fatJar --- build.gradle | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ea8b14d..cf6c775 100644 --- a/build.gradle +++ b/build.gradle @@ -9,10 +9,21 @@ mainClassName = 'com.gnarly.ld.Main' sourceCompatibility = 1.12 +task fatJar(type: Jar) { + manifest { + attributes 'Main-Class': 'com.gnarly.ld.Main' + } + baseName = project.name + '-all' + from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } + with jar +} + repositories { jcenter() } dependencies { - compile group: 'net.dv8tion', name: 'JDA', version: '3.8.3_464' + compile ('net.dv8tion:JDA:3.8.3_464') { + exclude module: 'opus-java' + } }