forked from nguyenquyhy/DiscordBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.49 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
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'
}
maven {
name = 'jitpack.io'
url = 'https://jitpack.io'
}
maven {
name = "Nucleus"
url = "http://repo.drnaylor.co.uk/artifactory/list/minecraft"
}
jcenter()
}
dependencies {
compile 'org.spongepowered:spongeapi:7.+'
compile 'net.dv8tion:JDA:3.5.1_339'
compile 'com.mashape.unirest:unirest-java:1.4.9'
compile 'io.github.nucleuspowered:nucleus-api:+'
}
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')
relocate 'org.apache.http', 'shaded.apache.http'
relocate 'org.apache.commons', 'shaded.apache.commons'
}
}
build.dependsOn(shadowJar)