-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
109 lines (97 loc) · 4.17 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
104
105
106
107
108
109
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://jitpack.io'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
}
}
apply plugin: 'java'
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://jitpack.io'
}
maven {
name 'velocity'
url 'https://repo.velocitypowered.com/snapshots/'
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
//testCompile group: 'junit', name: 'junit', version: '4.12'
implementation 'com.velocitypowered:velocity-api:1.1.0-SNAPSHOT'
implementation "org.spongepowered:configurate-hocon:3.7.1"
annotationProcessor 'com.velocitypowered:velocity-api:1.1.0-SNAPSHOT'
//Jda
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.json:json:20200518'
implementation 'net.sf.trove4j:trove4j:3.0.3'
implementation 'com.squareup.okio:okio:2.8.0'
implementation 'com.neovisionaries:nv-websocket-client:2.10'
implementation 'com.squareup.okhttp3:okhttp:4.8.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.11.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.2'
implementation 'com.vdurmont:emoji-java:5.1.1'
implementation 'net.dv8tion:JDA:4.2.0_168'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.4.0'
}
shadowJar {
// Output to build/libs/shadow.jar
String jarName = "${project.name}-${pluginVersion}.jar"
println "Building: " + jarName
archiveFileName = jarName
dependencies {
include dependency('org.spongepowered:configurate-hocon')
include dependency('org.spongepowered:configurate-core')
include dependency('com.typesafe:config')
include dependency('net.kyori:adventure-api')
include dependency('net.kyori:text-api')
include dependency('net.kyori:adventure-text-serializer-legacy')
include dependency('net.kyori:examination-api')
include dependency('net.kyori:text-serializer-legacy')
include dependency('org.apache.commons:commons-collections4')
include dependency('com.vdurmont:emoji-java')
include dependency('net.dv8tion:JDA')
include dependency('org.json:json')
include dependency('com.neovisionaries:nv-websocket-client')
include dependency('com.squareup.okhttp3:okhttp')
include dependency('com.squareup.okio:okio')
include dependency('net.sf.trove4j:trove4j')
include dependency('com.fasterxml.jackson.core:jackson-core:2.11.2')
include dependency('com.fasterxml.jackson.core:jackson-annotations:2.11.2')
include dependency('com.fasterxml.jackson.core:jackson-databind:2.11.2')
include dependency('org.jetbrains.kotlin:kotlin-stdlib:1.4.0')
relocate('org.apache', 'io.github.bennyboy1695.betterdiscordbridge.libs.org.apache') {
exclude 'org/apache/logging/**'
}
relocate "okhttp3", "io.github.bennyboy1695.betterdiscordbridge.libs.okhttp3"
relocate "jackson-core", "io.github.bennyboy1695.betterdiscordbridge.libs.jackson-core"
relocate "jackson-annotations", "io.github.bennyboy1695.betterdiscordbridge.libs.jackson-annotations"
relocate "jackson-databind", "io.github.bennyboy1695.betterdiscordbridge.libs.jackson-databind"
relocate "okio", "io.github.bennyboy1695.betterdiscordbridge.libs.okio"
relocate "org.json", "io.github.bennyboy1695.betterdiscordbridge.libs.org.json"
relocate "gnu.trove", "io.github.bennyboy1695.betterdiscordbridge.libs.gnu.trove"
relocate 'com.squareup', 'io.github.bennyboy1695.betterdiscordbridge.libs.com.squareup'
}
}
compileJava.options.encoding = 'UTF-8'