-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (44 loc) · 1.46 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.5.20'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
group 'cyou.untitled.bungeesafeguard'
version '3.1-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
sourceSets {
all {
languageSettings.useExperimentalAnnotation('kotlinx.coroutines.DelicateCoroutinesApi')
}
}
shadowJar {
// Library loading is delegated to BungeeCord
dependencies {
exclude(dependency('org.jetbrains.kotlin.*:.*:.*'))
exclude(dependency('io.ktor.*:.*:.*'))
exclude(dependency('com.google.code.gson:gson:.*'))
}
archiveBaseName.set('BungeeSafeguard')
archiveVersion.set(project.version as String)
zip64 true
relocate('org.bstats', 'cyou.untitled.bungeesafeguard.bstats')
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
compileOnly 'com.google.code.gson:gson:2.8.7' // Included in BungeeCord
compileOnly "net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT"
compileOnly 'io.ktor:ktor-client-core:1.6.0'
compileOnly 'io.ktor:ktor-client-cio:1.6.0'
implementation 'org.bstats:bstats-bungeecord:2.2.1' // Shaded
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
test {
useJUnitPlatform()
}