forked from flytegg/paper-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (36 loc) · 1.16 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
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.shadow)
alias(libs.plugins.paperweight)
alias(libs.plugins.run.paper)
}
group = "gg.flyte"
version = "1.0.1"
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://repo.flyte.gg/releases")
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
implementation(libs.twilight)
implementation(libs.paperlib)
implementation(libs.lamp.common)
implementation(libs.lamp.bukkit)
implementation(libs.lamp.brigadier)
implementation(libs.mccoroutine.api)
implementation(libs.mccoroutine.core)
implementation(libs.kotlinx.coroutines.core)
}
tasks {
build { dependsOn(shadowJar) }
runServer { minecraftVersion("1.20.2") }
compileKotlin { kotlinOptions.jvmTarget = "17" }
shadowJar {
relocate("kotlin", "gg.flyte.kotlin")
relocate("io.papermc.lib", "gg.flyte.paperlib")
relocate("org.jetbrains.annotations", "gg.flyte.jetbrains.annotations")
relocate("org.intellij.lang.annotations", "gg.flyte.intellij.lang.annotations")
}
}