import io.papermc.paperweight.util.constants.PAPERCLIP_CONFIG plugins { java `maven-publish` id("com.github.johnrengelman.shadow") version "8.1.1" apply false id("io.papermc.paperweight.patcher") version "1.5.5" } repositories { mavenCentral() maven("https://papermc.io/repo/repository/maven-public/") { content { onlyForConfigurations(PAPERCLIP_CONFIG) } } } dependencies { remapper("net.fabricmc:tiny-remapper:0.8.6:fat") decompiler("net.minecraftforge:forgeflower:2.0.627.2") paperclip("io.papermc:paperclip:3.0.3") } subprojects { apply(plugin = "java") java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } } } subprojects { tasks.withType().configureEach { options.encoding = "UTF-8" options.release.set(17) } tasks.withType { options.encoding = Charsets.UTF_8.name() } tasks.withType { filteringCharset = Charsets.UTF_8.name() } tasks.withType { minHeapSize = "2g" maxHeapSize = "2g" } 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://jitpack.io") maven("https://oss.sonatype.org/content/repositories/snapshots/") } } paperweight { serverProject.set(project(":divinemc-server")) remapRepo.set("https://maven.fabricmc.net/") decompileRepo.set("https://files.minecraftforge.net/maven/") useStandardUpstream("purpur") { url.set(github("PurpurMC", "Purpur")) ref.set(providers.gradleProperty("purpurRef")) withStandardPatcher { baseName("Purpur") apiPatchDir.set(layout.projectDirectory.dir("patches/api")) apiOutputDir.set(layout.projectDirectory.dir("DivineMC-API")) serverPatchDir.set(layout.projectDirectory.dir("patches/server")) serverOutputDir.set(layout.projectDirectory.dir("DivineMC-Server")) } } }