From 8bb2e1266fa31f1e2cd5a5319675525ddb2402b5 Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Sat, 12 Jun 2021 20:08:10 +0200 Subject: [PATCH] dum readme --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a982da8 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# 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. + +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")) + } + } +} + +``` + +## Tasks + +``` +Paperweight tasks +----------------- +applyPatches +cleanCache - Delete the project setup cache and task outputs. +patchPaperApi +patchPaperServer +rebuildPaperApi +rebuildPaperServer +rebuildPatches +runDev - Spin up a non-shaded non-remapped test server +runShadow - Spin up a test server from the shadowJar archiveFile +```