Skip to content

Commit

Permalink
Add gradle task for running servers to test
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Jun 5, 2024
1 parent 88e8288 commit c2077e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ bin
.classpath
.project
.DS_Store

spigot/run/
fabric/run/
8 changes: 8 additions & 0 deletions spigot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ plugins {
// See https://plugins.gradle.org/plugin/io.github.goooler.shadow
id("io.github.goooler.shadow") version "8.1.7"
id("net.kyori.blossom") version "1.3.1"
id("xyz.jpenilla.run-paper") version "2.3.0"
}

val nbtApiVersion: String by project
Expand Down Expand Up @@ -120,6 +121,13 @@ tasks.build {
dependsOn(tasks.shadowJar)
}

tasks.runServer {
minecraftVersion("1.20.4")
downloadPlugins {
url("https://download.luckperms.net/1544/bukkit/loader/LuckPerms-Bukkit-5.4.131.jar")
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down

0 comments on commit c2077e7

Please sign in to comment.