import io.papermc.paperweight.util.constants.* plugins { java `maven-publish` id("com.github.johnrengelman.shadow") version "7.1.2" apply false id("io.papermc.paperweight.patcher") version "1.3.4" } repositories { mavenCentral() maven("https://papermc.io/repo/repository/maven-public/") { content { onlyForConfigurations(PAPERCLIP_CONFIG) } } } dependencies { remapper("net.fabricmc:tiny-remapper:0.8.1:fat") decompiler("net.minecraftforge:forgeflower:1.5.498.22") 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 { options.encoding = Charsets.UTF_8.name() options.release.set(17) } tasks.withType { options.encoding = Charsets.UTF_8.name() } tasks.withType { filteringCharset = Charsets.UTF_8.name() } repositories { mavenCentral() maven("https://papermc.io/repo/repository/maven-public/") } } paperweight { serverProject.set(project(":Scissors-Server")) remapRepo.set("https://maven.fabricmc.net/") decompileRepo.set("https://files.minecraftforge.net/maven/") usePaperUpstream(providers.gradleProperty("paperRef")) { withPaperPatcher { apiPatchDir.set(layout.projectDirectory.dir("patches/api")) apiOutputDir.set(layout.projectDirectory.dir("Scissors-API")) serverPatchDir.set(layout.projectDirectory.dir("patches/server")) serverOutputDir.set(layout.projectDirectory.dir("Scissors-Server")) } } }