Added fatJar

This commit is contained in:
Gnarwhal 2020-02-13 18:07:48 -05:00
parent 5a3344bcc0
commit 9854be5949
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174

View file

@ -9,10 +9,21 @@ mainClassName = 'com.gnarly.ld.Main'
sourceCompatibility = 1.12 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 { repositories {
jcenter() jcenter()
} }
dependencies { dependencies {
compile group: 'net.dv8tion', name: 'JDA', version: '3.8.3_464' compile ('net.dv8tion:JDA:3.8.3_464') {
exclude module: 'opus-java'
}
} }