Skip to content

Commit

Permalink
build: add run-paper
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 8, 2024
1 parent ff07536 commit fdd7b06
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ ktlint = "0.50.0"
checkstyle = "10.12.5"
kotlin = "1.9.20"
shadow = "8.1.1"
paperweight = "1.5.10"
paperweight = "1.5.11"
run-paper = "2.2.2"

# Platforms
minecraft = "1.17.1-R0.1-SNAPSHOT"
Expand Down Expand Up @@ -48,8 +49,9 @@ essentialsx = { group = "net.essentialsx", name = "EssentialsX", version.ref = "
placeholderapi = { group = "me.clip", name = "placeholderapi", version.ref = "placeholderapi" }

[plugins]
paperweightUserdev = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight" }
paperweight-userdev = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight" }
cloud-buildLogic-spotless = { id = "org.incendo.cloud-build-logic.spotless", version.ref = "cloud-build-logic" }
cloud-buildLogic-rootProject-publishing = { id = "org.incendo.cloud-build-logic.publishing.root-project", version.ref = "cloud-build-logic" }
cloud-buildLogic-rootProject-spotless = { id = "org.incendo.cloud-build-logic.spotless.root-project", version.ref = "cloud-build-logic" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper" }
5 changes: 5 additions & 0 deletions hyperverse-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("hyperverse.base-conventions")
id("hyperverse.publishing-conventions")
alias(libs.plugins.shadow)
alias(libs.plugins.run.paper)
}

apply {
Expand Down Expand Up @@ -92,4 +93,8 @@ tasks {
build {
dependsOn(shadowJar)
}

runServer {
minecraftVersion("1.20.4")
}
}
2 changes: 1 addition & 1 deletion hyperverse-nms-1-17/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("hyperverse.base-conventions")
alias(libs.plugins.paperweightUserdev)
alias(libs.plugins.paperweight.userdev)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion hyperverse-nms-1-18/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("hyperverse.base-conventions")
alias(libs.plugins.paperweightUserdev)
alias(libs.plugins.paperweight.userdev)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion hyperverse-nms-1-19/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("hyperverse.base-conventions")
alias(libs.plugins.paperweightUserdev)
alias(libs.plugins.paperweight.userdev)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion hyperverse-nms-1-20/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("hyperverse.base-conventions")
alias(libs.plugins.paperweightUserdev)
alias(libs.plugins.paperweight.userdev)
}

dependencies {
Expand Down

0 comments on commit fdd7b06

Please sign in to comment.