forked from CyR1en/Minecordbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (94 loc) · 3.1 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'groovy'
id 'java'
id 'application'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
group 'us.cyrien.minecordbot'
version '2.2.5_b5'
mainClassName = 'us.cyrien.minecordbot.main.Minecordbot'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
mavenLocal()
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'natrolite-repo'
url = 'https://repo.natrolite.org/repository/maven-public/'
}
maven {
url 'https://jitpack.io'
}
maven {
name = 'vault-repo'
url = 'http://nexus.hc.to/content/repositories/pub_releases'
}
maven {
name = 'sk89q-repo'
url = 'http://maven.sk89q.com/repo'
}
maven {
url = 'https://raw.githubusercontent.com/JRakNet/MavenRepository/master'
}
maven {
name = 'AOL yoava'
url = 'http://yoava.artifactoryonline.com/yoava/repo'
}
flatDir {
dirs 'libs'
}
}
dependencies {
compile 'net.dv8tion:JDA:3.5.1_347'
compile 'com.jagrosh:JDA-Utilities:1.9'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.6'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'commons-codec', name: 'commons-codec', version: '1.9'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'com.whirvis', name: 'jraknet', version: '2.9.6'
compile group: 'joda-time', name: 'joda-time', version: '2.9.9'
compile group: 'dnsjava', name: 'dnsjava', version: '2.1.1'
compile group: 'gui.ava', name: 'html2image', version: '0.9'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
compileOnly 'net.milkbowl.vault:VaultAPI:1.6'
compileOnly 'org.bukkit:bukkit:1.12.2-R0.1-SNAPSHOT'
compileOnly 'com.github.TechFortress:GriefPrevention:16.7.1'
compileOnly name: 'mv'
compileOnly name: 'PermissionsEx-1.23.4'
compileOnly name: 'mcMMO'
compileOnly name: 'EssentialsX'
compileOnly name: 'SuperVanish'
compileOnly name: 'VentureChat'
}
jar {
baseName = project.name
manifest {
attributes 'Implementation-Version': version
attributes 'Main-Class': mainClassName
}
}
shadowJar {
classifier = 'Shaded'
dependencies {
exclude(dependency('org.spigotmc:spigot-api:1.12.1-R0.1-SNAPSHOT'))
exclude(dependency('com.google.guava:guava:21.0'))
exclude(dependency('com.google.code.gson:gson:2.8.0'))
exclude(dependency('net.md-5:bungeecord-chat:1.12-SNAPSHOT'))
exclude(dependency('org.hamcrest:hamcrest-core:1.1'))
exclude(dependency('org.yaml:snakeyaml:1.18'))
exclude(dependency('commons-lang:commons-lang:2.6'))
exclude(dependency('com.github.TechFortress:GriefPrevention:16.7.1'))
exclude(dependency('rhino:js:1.7R2'))
exclude(dependency('junit:junit:4.10'))
}
relocate 'org.apache', 'shadow.org.apache'
relocate('org.json', 'shadow.org.json')
}
build {
dependsOn shadowJar
}