Skip to content

Commit db8953a

Browse files
committed
setup run-paper + shade bstats
1 parent 9e68ca7 commit db8953a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
target/
66
build/
77
.gradle/
8+
run/

build.gradle.kts

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ plugins {
33
kotlin("plugin.serialization") version "2.0.21"
44

55
id("com.gradleup.shadow") version "8.3.3"
6+
7+
id("xyz.jpenilla.run-paper") version "2.3.1"
68
}
79

810
group = "com.zp4rker"
911
version = "2.0.0-k2.0.21"
10-
description = "Kotlin meets Bukkit. Kotlin packaged into a plugin, as well as some added features using Kotlin."
12+
description = "Kotlin meets Bukkit. Kotlin packaged into a plugin, as well as some added features using Kotlin"
1113

1214
val mcVersion = "1.21.1"
15+
project.ext["mcVersion"] = mcVersion
1316

1417
repositories {
1518
mavenCentral()
@@ -35,6 +38,7 @@ tasks {
3538

3639
shadowJar {
3740
archiveFileName = filename
41+
relocate("org.bstats", "com.zp4rker.bukkot.bstats")
3842
}
3943

4044
processResources {
@@ -50,4 +54,11 @@ tasks {
5054
build {
5155
dependsOn(shadowJar)
5256
}
57+
58+
runServer {
59+
minecraftVersion(mcVersion)
60+
subprojects.forEach {
61+
pluginJars(it.tasks.jar.map { jar -> jar.archiveFile })
62+
}
63+
}
5364
}

src/main/resources/plugin.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ libraries:
55
- org.jetbrains.kotlin:kotlin-stdlib:2.0.21
66
- org.jetbrains.kotlin:kotlin-reflect:2.0.21
77
- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0
8-
- org.bstats:bstats-bukkit:1.7
98

109
name: Bukkot
1110
version: ${version}

0 commit comments

Comments
 (0)