-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
64 lines (52 loc) · 1.38 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
plugins {
id 'com.gradleup.shadow' version '8.3.0'
id 'java-library'
}
version = project.version
configurations {
shade
}
repositories {
maven {
name = 'papermc'
url = 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name = 'jitpack'
url = 'https://jitpack.io'
}
}
dependencies {
compileOnly("com.velocitypowered:velocity-api:$velocity_version") {
changing = true
}
annotationProcessor("com.velocitypowered:velocity-api:$velocity_version") {
changing = true
}
shade implementation("net.dv8tion:JDA:$jda_version") {
exclude module: 'opus-java'
}
compileOnly "net.kyori:adventure-text-minimessage:$minimessage_version"
implementation "com.electronwill.night-config:toml:$night_config_version"
implementation "com.github.unilock:yeplib:$yeplib_version"
testImplementation platform("org.junit:junit-bom:$junit_version")
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation "com.electronwill.night-config:toml:$night_config_version"
compileOnly 'net.luckperms:api:5.4'
}
shadowJar {
setArchiveClassifier(null)
setConfigurations([project.configurations.shade])
relocate("net.dv8tion", "ooo.foooooooooooo.velocitydiscord.lib.net.dv8tion")
minimize()
}
build {
dependsOn shadowJar
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = true
}
}