-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
66 lines (57 loc) · 1.73 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.21"
id "org.jetbrains.kotlin.kapt" version "1.5.21"
id "net.kyori.blossom" version "1.3.0"
id "com.github.johnrengelman.shadow" version "7.0.0"
}
group 'lv.mtm123'
version '1.2.0-SNAPSHOT'
apply plugin: "com.github.johnrengelman.shadow"
blossom {
replaceToken("@version@", version)
}
processResources {
filter { String line -> line.replace("@version@", version) }
}
shadowJar {
minimize()
relocate 'org.spongepowered.configurate', 'lv.mtm123.slashserver.org.spongepowered.configurate'
relocate 'kotlin', 'lv.mtm123.slashserver.kotlin'
relocate 'org.yaml', 'lv.mtm123.slashserver.org.yaml'
relocate 'org.bstats', 'lv.mtm123.slashserver.bstats'
}
build.dependsOn shadowJar
repositories {
mavenCentral()
maven {
name 'velocity'
url 'https://repo.velocitypowered.com/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'bungee'
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21'
compileOnly 'com.velocitypowered:velocity-api:3.0.0'
compileOnly 'net.md-5:bungeecord-api:1.16-R0.4'
implementation 'org.spongepowered:configurate-yaml:4.1.1'
implementation 'org.bstats:bstats-bungeecord:2.2.1'
implementation 'org.bstats:bstats-velocity:2.2.1'
kapt 'com.velocitypowered:velocity-api:1.0.0-SNAPSHOT'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}