11import ru.endlesscode.bukkitgradle.dependencies.aikar
22import ru.endlesscode.bukkitgradle.dependencies.codemc
3+ import ru.endlesscode.bukkitgradle.dependencies.papermc
34
45plugins {
56 commons
@@ -9,10 +10,10 @@ plugins {
910 kotlin(" plugin.serialization" )
1011}
1112
12- description = " Bukkit plugin with implementations of Mimic APIs"
13+ description = " Bukkit plugin implementing Mimic APIs"
1314
1415bukkit {
15- apiVersion = " 1.16.5 "
16+ apiVersion = " 1.20 "
1617
1718 plugin {
1819 name = " Mimic"
@@ -44,6 +45,7 @@ tasks.runServer {
4445}
4546
4647repositories {
48+ papermc()
4749 maven(url = " https://gitlab.com/endlesscodegroup/mvn-repo/raw/master/" )
4850 maven(url = " https://mvn.lumine.io/repository/maven-public/" ) {
4951 content {
@@ -66,12 +68,11 @@ repositories {
6668dependencies {
6769 api(projects.mimicBukkitApi)
6870
69- compileOnly(libs.spigot.api) { isTransitive = false }
71+ compileOnly(libs.paperApi)
7072 compileOnly(libs.annotations)
7173
7274 implementation(libs.bstats)
7375 implementation(libs.serialization.hocon)
74- implementation(libs.adventure)
7576
7677 compileOnly(libs.commandapi)
7778 compileOnly(libs.commandapi.kotlin)
@@ -80,9 +81,9 @@ dependencies {
8081 // From libs/ directory
8182 compileOnly(" :CustomItemsAPI" )
8283 compileOnly(" :QuantumRPG:5.10.2" )
83- compileOnly(" :NexEngine:2.0.3" ) // Do not update NexEngine. QuantumRpgWrapper cannot compile with higher version
84+ compileOnly(" :NexEngine:2.0.3" ) // Do not update NexEngine. QuantumRpgWrapper cannot compile with a higher version
8485
85- testImplementation(libs.spigot.api )
86+ testImplementation(libs.paperApi )
8687 testImplementation(libs.rpgplugins.skillapi)
8788}
8889
@@ -92,6 +93,12 @@ kotlin {
9293 }
9394}
9495
96+ tasks.test {
97+ javaLauncher = javaToolchains.launcherFor {
98+ languageVersion = JavaLanguageVersion .of(17 )
99+ }
100+ }
101+
95102tasks.shadowJar {
96103 dependencies {
97104 exclude(dependency(" org.jetbrains:annotations:.*" ))
@@ -101,8 +108,6 @@ tasks.shadowJar {
101108 relocate(" kotlin" , " $shadePackage .kotlin" )
102109 relocate(" org.bstats" , " $shadePackage .bstats" )
103110 relocate(" com.typesafe.config" , " $shadePackage .hocon" )
104- relocate(" net.kyori.adventure" , " $shadePackage .adventure" )
105- relocate(" net.kyori.examination" , " $shadePackage .examination" )
106111
107112 exclude(" META-INF/*.kotlin_module" )
108113 exclude(" META-INF/com.android.tools/**" )
0 commit comments