From fe6dbf0377c5eb9da382b9fc7963261dba4b034a Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:02:39 -0700 Subject: Move paperweight use to -server --- build.gradle.kts | 51 +++++++-------------------------------------------- 1 file changed, 7 insertions(+), 44 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index b265f02abd..0252749c00 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,16 +9,14 @@ import java.util.regex.Pattern import kotlin.io.path.* plugins { - java - `maven-publish` - id("io.papermc.paperweight.core") version "2.0.0-SNAPSHOT" + id("io.papermc.paperweight.core") version "2.0.0-SNAPSHOT" apply false } -allprojects { - apply(plugin = "java") +subprojects { + apply(plugin = "java-library") apply(plugin = "maven-publish") - java { + extensions.configure { toolchain { languageVersion = JavaLanguageVersion.of(21) } @@ -51,45 +49,8 @@ subprojects { mavenCentral() maven(paperMavenPublicUrl) } -} - -dependencies { - mache("io.papermc:mache:1.21.4+build.3") -} - -paperweight { - softSpoon = true - minecraftVersion = "1.21.4" - // macheOldPath = file("F:\\Projects\\PaperTooling\\mache\\versions\\1.21.4\\src\\main\\java") - // gitFilePatches = true - - paper { - paperServerDir = file("paper-server") - } - - serverProject = project(":paper-server") -} - -tasks.generateDevelopmentBundle { - apiCoordinates = "io.papermc.paper:paper-api" - libraryRepositories.addAll( - "https://repo.maven.apache.org/maven2/", - paperMavenPublicUrl, - ) -} - -publishing { - if (project.providers.gradleProperty("publishDevBundle").isPresent) { - publications.create("devBundle") { - artifact(tasks.generateDevelopmentBundle) { - artifactId = "dev-bundle" - } - } - } -} -allprojects { - publishing { + extensions.configure { repositories { maven("https://repo.papermc.io/repository/maven-snapshots/") { name = "paperSnapshots" @@ -112,6 +73,7 @@ tasks.register("printPaperVersion") { } // see gradle.properties +/* if (providers.gradleProperty("updatingMinecraft").getOrElse("false").toBoolean()) { tasks.collectAtsFromPatches { val dir = layout.projectDirectory.dir("patches/unapplied/server") @@ -256,3 +218,4 @@ abstract class RebasePatches : BaseTask() { git("add", unappliedPatches.path.toString() + "/*").runSilently() } } + */ -- cgit v1.2.3