diff options
author | Jason Penilla <[email protected]> | 2024-12-06 14:02:39 -0700 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-12-12 11:36:44 +0100 |
commit | fe6dbf0377c5eb9da382b9fc7963261dba4b034a (patch) | |
tree | f7e57bc03799e51348fd511e835fb883a5ccb3ce /build.gradle.kts | |
parent | c6233d8bcd28cfbd367ff9a518f5ca762ef32391 (diff) | |
download | Paper-fe6dbf0377c5eb9da382b9fc7963261dba4b034a.tar.gz Paper-fe6dbf0377c5eb9da382b9fc7963261dba4b034a.zip |
Move paperweight use to -server
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 51 |
1 files changed, 7 insertions, 44 deletions
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<JavaPluginExtension> { 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<MavenPublication>("devBundle") { - artifact(tasks.generateDevelopmentBundle) { - artifactId = "dev-bundle" - } - } - } -} -allprojects { - publishing { + extensions.configure<PublishingExtension> { 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() } } + */ |