forked from hafarooki/StarLegacy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
65 lines (55 loc) · 2.27 KB
/
build.gradle.kts
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
import org.gradle.jvm.toolchain.JavaLanguageVersion.of
plugins {
java
kotlin("jvm") version "1.6.20"
id("io.papermc.paperweight.userdev") version "1.3.5"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
repositories {
mavenCentral()
maven("https://nexus.scarsz.me/content/groups/public/") // AnvilGUI, DiscordSRV
maven("https://repo.aikar.co/content/groups/aikar/") // Annotation Command Framework (Paper), WorldEdit API
maven("https://m2.dv8tion.net/releases") // JDA (Required by DiscordSRV)
maven("https://repo.citizensnpcs.co/") // Citizens
maven("https://jitpack.io") // khttp, VaultAPI, Dynmap (Spigot)
}
val minecraftVersion = "1.18.2-R0.1-SNAPSHOT"
dependencies {
// Dynmap and probably something else is including old Bukkit / Spigot versions, I could use excludes...
// or I can just set paper at the top, thus overriding it. - Peter
compileOnly("io.papermc.paper:paper-api:$minecraftVersion")
paperDevBundle(minecraftVersion)
// Provided by us
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
// TODO: Remove
implementation("com.github.jkcclemens:khttp:0.1.0") {
exclude("org.jetbrains.kotlin")
exclude("org.json")
}
implementation("net.wesjd:anvilgui:1.5.3-SNAPSHOT")
// Provided by other plugins
compileOnly("net.luckperms:api:5.4")
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
compileOnly("net.citizensnpcs:citizens:2.0.27-SNAPSHOT")
compileOnly("com.github.webbukkit.dynmap:spigot:3.1")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.8")
// TODO: Remove
compileOnly("com.discordsrv:discordsrv:1.25.1")
// Provided by Server Library Loader
compileOnly("org.jetbrains.kotlin:kotlin-reflect:1.6.20")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.6.20")
compileOnly("org.litote.kmongo:kmongo:4.5.1")
// TODO: Remove
compileOnly("io.github.config4k:config4k:0.4.2")
compileOnly("com.googlecode.cqengine:cqengine:3.6.0")
compileOnly("com.daveanthonythomas.moshipack:moshipack:1.0.1")
// Older versions
compileOnly("redis.clients:jedis:3.7.1")
compileOnly("com.github.stefvanschie.inventoryframework:IF:0.5.8")
}
tasks {
compileKotlin { kotlinOptions { jvmTarget = "17" } }
reobfJar { outputJar.set(file(rootProject.projectDir.absolutePath + "/build/IonCore.jar")) }
shadowJar { minimize() }
}
java.toolchain.languageVersion.set(of(17))