-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
60 lines (53 loc) · 1.89 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
defaultTasks 'build', 'shadowJar'
group = 'com.nguyenquyhy'
version = '3.0.0'
description = 'A plugin to connect Discord and Minecraft'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
name 'Sonatype'
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'sponge'
url 'http://repo.spongepowered.org/maven'
}
jcenter()
}
dependencies {
compile('org.spongepowered:spongeapi:7.0.0')
//compile('org.spongepowered:spongeapi:5.0.0')
//compile files('libs/javacord-2.0.14-shaded.jar')
compile 'net.dv8tion:JDA:3.4.0_320'
compile 'com.mashape.unirest:unirest-java:1.4.9'
// compile('de.btobastian.javacord:javacord:2.0.11:shaded')
// compile "com.github.austinv11:Discord4j:2.4.9:shaded"
// compile 'org.apache.httpcomponents:httpcore:4.3.2'
// compile 'org.apache.httpcomponents:httpclient:4.3.3'
// compile 'org.java-websocket:Java-WebSocket:1.3.0'
// compile 'com.googlecode.json-simple:json-simple:1.1.1'
// compile 'net.jodah:typetools:0.4.3'
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
shadowJar {
dependencies {
include dependency('commons-logging:commons-logging')
include dependency('org.apache.commons:commons-lang3')
include dependency('org.apache.httpcomponents:httpcore')
include dependency('org.apache.httpcomponents:httpclient')
// include dependency('com.googlecode.json-simple:json-simple')
// include dependency('org.java-websocket:Java-WebSocket')
// include dependency('net.jodah:typetools')
relocate 'org.apache.http', 'shaded.apache.http'
relocate 'org.apache.commons', 'shaded.apache.commons'
}
}