Skip to content

Commit

Permalink
Add run tasks and remove useless variables (#5362)
Browse files Browse the repository at this point in the history
* Add run tasks and remove useless variables

The benefit of run tasks is that proxies like velocity can be prototyped on without using standalone or a GUI. Thus simplifying the prototyping/fixing process.

* Drop runwaterfall
  • Loading branch information
AlexProgrammerDE authored Feb 22, 2025
1 parent fd4c805 commit 07be402
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions bootstrap/spigot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("geyser.platform-conventions")
id("geyser.modrinth-uploading-conventions")
alias(libs.plugins.runpaper)
}

dependencies {
Expand Down Expand Up @@ -90,3 +91,9 @@ modrinth {
"1.19.1", "1.19.2", "1.19.3", "1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6")
loaders.addAll("spigot", "paper")
}

tasks {
runServer {
minecraftVersion(libs.versions.runpaperversion.get())
}
}
3 changes: 0 additions & 3 deletions bootstrap/standalone/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ plugins {
id("geyser.platform-conventions")
}

val terminalConsoleVersion = "1.2.0"
val jlineVersion = "3.21.0"

dependencies {
api(projects.core)

Expand Down
7 changes: 7 additions & 0 deletions bootstrap/velocity/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("geyser.platform-conventions")
id("geyser.modrinth-uploading-conventions")
alias(libs.plugins.runvelocity)
}

dependencies {
Expand Down Expand Up @@ -83,3 +84,9 @@ modrinth {
uploadFile.set(tasks.getByPath("shadowJar"))
loaders.addAll("velocity")
}

tasks {
runVelocity {
version(libs.versions.runvelocityversion.get())
}
}
5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ mixin = "0.8.5"
mixinextras = "0.3.5"
minecraft = "1.21.4"
mockito = "5.+"
runtask = "2.3.1"
runpaperversion = "1.21.4"
runvelocityversion = "3.4.0-SNAPSHOT"

# plugin versions
indra = "3.1.3"
Expand Down Expand Up @@ -150,6 +153,8 @@ minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "
[plugins]
indra = { id = "net.kyori.indra", version.ref = "indra" }
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runtask" }
runpaper = { id = "xyz.jpenilla.run-paper", version.ref = "runtask" }

[bundles]
jackson = [ "jackson-annotations", "jackson-databind", "jackson-dataformat-yaml" ]
Expand Down

0 comments on commit 07be402

Please sign in to comment.