mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
Build updates
This commit is contained in:
parent
fe6dbf0377
commit
9368da77a9
5 changed files with 34 additions and 13 deletions
|
@ -21,6 +21,15 @@ subprojects {
|
||||||
languageVersion = JavaLanguageVersion.of(21)
|
languageVersion = JavaLanguageVersion.of(21)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
"testRuntimeOnly"("org.junit.platform:junit-platform-launcher")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<AbstractArchiveTask>().configureEach {
|
||||||
|
isPreserveFileTimestamps = false
|
||||||
|
isReproducibleFileOrder = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
|
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
|
||||||
|
|
|
@ -8,6 +8,3 @@ updatingMinecraft=false
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
org.gradle.vfs.watch=false
|
org.gradle.vfs.watch=false
|
||||||
|
|
||||||
# TODO: this should be removed when we move things to forked JVMs
|
|
||||||
org.gradle.jvmargs=-Xmx2G
|
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
import io.papermc.paperweight.PaperweightSourceGeneratorHelper
|
|
||||||
import io.papermc.paperweight.extension.PaperweightSourceGeneratorExt
|
|
||||||
import io.papermc.paperweight.util.defaultJavaLauncher
|
import io.papermc.paperweight.util.defaultJavaLauncher
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
|
id("io.papermc.paperweight.source-generator")
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.apply(PaperweightSourceGeneratorHelper::class)
|
paperweight {
|
||||||
|
atFile.set(layout.projectDirectory.file("wideners.at"))
|
||||||
extensions.configure(PaperweightSourceGeneratorExt::class) {
|
|
||||||
atFile.set(projectDir.toPath().resolve("wideners.at").toFile())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
minecraftJar(project(":paper-server", "mappedJarOutgoing"))
|
||||||
|
implementation(project(":paper-server", "macheMinecraftLibraries"))
|
||||||
|
|
||||||
implementation("com.squareup:javapoet:1.13.0")
|
implementation("com.squareup:javapoet:1.13.0")
|
||||||
implementation(project(":paper-api"))
|
implementation(project(":paper-api"))
|
||||||
implementation("io.github.classgraph:classgraph:4.8.47")
|
implementation("io.github.classgraph:classgraph:4.8.47")
|
||||||
|
|
|
@ -11,19 +11,33 @@ val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
mache("io.papermc:mache:1.21.4+build.5")
|
mache("io.papermc:mache:1.21.4+build.5")
|
||||||
|
paperclip("io.papermc:paperclip:3.0.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
paperweight {
|
paperweight {
|
||||||
softSpoon = true
|
minecraftVersion = providers.gradleProperty("mcVersion")
|
||||||
minecraftVersion = "1.21.4"
|
|
||||||
// macheOldPath = file("F:\\Projects\\PaperTooling\\mache\\versions\\1.21.4\\src\\main\\java")
|
// macheOldPath = file("F:\\Projects\\PaperTooling\\mache\\versions\\1.21.4\\src\\main\\java")
|
||||||
// gitFilePatches = true
|
// gitFilePatches = true
|
||||||
|
|
||||||
paper {
|
paper {
|
||||||
paperServerDir = file("./")
|
reobfMappingsPatch = layout.projectDirectory.file("../build-data/reobf-mappings-patch.tiny")
|
||||||
|
reobfPackagesToFix.addAll(
|
||||||
|
"co.aikar.timings",
|
||||||
|
"com.destroystokyo.paper",
|
||||||
|
"com.mojang",
|
||||||
|
"io.papermc.paper",
|
||||||
|
"ca.spottedleaf",
|
||||||
|
"net.kyori.adventure.bossbar",
|
||||||
|
"net.minecraft",
|
||||||
|
"org.bukkit.craftbukkit",
|
||||||
|
"org.spigotmc",
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
serverProject = project(":paper-server")
|
spigot {
|
||||||
|
buildDataRef = "3edaf46ec1eed4115ce1b18d2846cded42577e42"
|
||||||
|
packageVersion = "v1_21_R3" // also needs to be updated in MappingEnvironment"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.generateDevelopmentBundle {
|
tasks.generateDevelopmentBundle {
|
||||||
|
|
|
@ -3,6 +3,7 @@ import java.util.Locale
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
mavenLocal()
|
||||||
maven("https://repo.papermc.io/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue