mirror of
https://github.com/PurpurMC/Purpur.git
synced 2025-02-23 13:09:31 +08:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@4797e3a Dont reassign the hiddenConfigs field in TimingsManager (#7951) PaperMC/Paper@3690440 Update paperweight to 1.3.7 PaperMC/Paper@90050ff Update Adventure to 4.11.0 and implement ComponentLogger (#7937)
112 lines
3.1 KiB
Plaintext
112 lines
3.1 KiB
Plaintext
import io.papermc.paperweight.util.constants.PAPERCLIP_CONFIG
|
|
|
|
plugins {
|
|
java
|
|
`maven-publish`
|
|
id("com.github.johnrengelman.shadow") version "7.1.2" apply false
|
|
id("io.papermc.paperweight.patcher") version "1.3.7"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://papermc.io/repo/repository/maven-public/") {
|
|
content {
|
|
onlyForConfigurations(PAPERCLIP_CONFIG)
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
remapper("net.fabricmc:tiny-remapper:0.8.2:fat")
|
|
decompiler("net.minecraftforge:forgeflower:1.5.605.7")
|
|
paperclip("io.papermc:paperclip:3.0.2")
|
|
}
|
|
|
|
allprojects {
|
|
apply(plugin = "java")
|
|
apply(plugin = "maven-publish")
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.release.set(17)
|
|
}
|
|
|
|
tasks.withType<Javadoc> {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
tasks.withType<ProcessResources> {
|
|
filteringCharset = Charsets.UTF_8.name()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://oss.sonatype.org/content/groups/public/")
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://ci.emc.gs/nexus/content/groups/aikar/")
|
|
maven("https://repo.aikar.co/content/groups/aikar")
|
|
maven("https://repo.md-5.net/content/repositories/releases/")
|
|
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
maven("https://jitpack.io")
|
|
}
|
|
}
|
|
|
|
paperweight {
|
|
serverProject.set(project(":purpur-server"))
|
|
|
|
remapRepo.set("https://maven.fabricmc.net/")
|
|
decompileRepo.set("https://files.minecraftforge.net/maven/")
|
|
|
|
usePaperUpstream(providers.gradleProperty("paperCommit")) {
|
|
withPaperPatcher {
|
|
apiPatchDir.set(layout.projectDirectory.dir("patches/api"))
|
|
apiOutputDir.set(layout.projectDirectory.dir("Purpur-API"))
|
|
|
|
serverPatchDir.set(layout.projectDirectory.dir("patches/server"))
|
|
serverOutputDir.set(layout.projectDirectory.dir("Purpur-Server"))
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.generateDevelopmentBundle {
|
|
apiCoordinates.set("org.purpurmc.purpur:purpur-api")
|
|
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
|
|
libraryRepositories.set(
|
|
listOf(
|
|
"https://repo.maven.apache.org/maven2/",
|
|
"https://libraries.minecraft.net/",
|
|
"https://papermc.io/repo/repository/maven-public/",
|
|
"https://maven.quiltmc.org/repository/release/",
|
|
"https://repo.purpurmc.org/snapshots",
|
|
)
|
|
)
|
|
}
|
|
|
|
allprojects {
|
|
publishing {
|
|
repositories {
|
|
maven("https://repo.purpurmc.org/snapshots") {
|
|
name = "purpur"
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications.create<MavenPublication>("devBundle") {
|
|
artifact(tasks.generateDevelopmentBundle) {
|
|
artifactId = "dev-bundle"
|
|
}
|
|
}
|
|
}
|