-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
48 lines (40 loc) · 972 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
group 'pro.loonatic'
version '0.0'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
dependencies {
implementation("net.dv8tion:JDA:4.2.1_253")
compile "net.dv8tion:JDA:4.2.1_253"
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.json', name: 'json', version: '20180813'
}
group 'DemiBOT-Live'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
jar {
manifest {
attributes("Manifest-Version": "1.0", "Main-Class": "pro.loonatic.demibot.Main");
}
}
task fatJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}