From d56348b64bac4d457dcb58d65bf4331d38477318 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 24 Aug 2021 21:21:42 -0700 Subject: [PATCH] Update README --- README.md | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 943376a..6f97596 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,29 @@ # ForkTest - A Paper fork, using paperweight -This is an example project, showcasing how to setup a fork of paper (or well, any project), using paperweight. +This is an example project, showcasing how to setup a fork of Paper (or any other fork using paperweight), using paperweight. -The interesting part of this is in the build gradle -``` -paperweight { - serverProject.set(project(":ForkTest-Server")) - - usePaperUpstream(providers.gradleProperty("paperRef")) { // specified in gradle.properties - withPaperPatcher { - apiPatchDir.set(layout.projectDirectory.dir("patches/api")) - apiOutputDir.set(layout.projectDirectory.dir("ForkTest-API")) - - serverPatchDir.set(layout.projectDirectory.dir("patches/server")) - serverOutputDir.set(layout.projectDirectory.dir("ForkTest-Server")) - } - } -} - -``` +The files of most interest are +- build.gradle.kts +- settings.gradle.kts +- gradle.properties ## Tasks ``` Paperweight tasks ----------------- +applyApiPatches applyPatches +applyServerPatches cleanCache - Delete the project setup cache and task outputs. -patchPaperApi -patchPaperServer -rebuildPaperApi -rebuildPaperServer +generateDevelopmentBundle +paperclipJar - Build a runnable paperclip jar +rebuildApiPatches rebuildPatches +rebuildServerPatches +reobfJar - Re-obfuscate the built jar to obf mappings runDev - Spin up a non-shaded non-remapped test server +runReobf - Spin up a test server from the reobfJar output jar runShadow - Spin up a test server from the shadowJar archiveFile ```