Skip to content

Commit 052cbbd

Browse files
committed
Add run-paper plugin
1 parent 6ce91de commit 052cbbd

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.iws
55
.idea/
66
.gradle/
7+
run/
78
out/
89
build/
910

eternalcore/build.gradle.kts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id("java-library")
33
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
4+
id("xyz.jpenilla.run-paper") version "1.0.6"
45
}
56

67
dependencies {
@@ -57,6 +58,13 @@ bukkit {
5758
version = "${project.version}"
5859
}
5960

61+
62+
tasks {
63+
runServer {
64+
minecraftVersion("1.18.2")
65+
}
66+
}
67+
6068
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
6169
archiveFileName.set("EternalCore v${project.version} (MC 1.17-1.18x).jar")
6270

@@ -76,8 +84,8 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
7684
relocate("net.kyori", "com.eternalcode.core.libs.net.kyori")
7785

7886
// for debug :D
79-
/* copy {
80-
this.from("build/libs/" + archiveFileName.get())
81-
this.into("C:/Users/")
82-
}*/
87+
// copy {
88+
// this.from("build/libs/" + archiveFileName.get())
89+
// this.into("C:/Users/")
90+
// }
8391
}

0 commit comments

Comments
 (0)