From 40807030e962685ece0be74f2b6413fc10df8001 Mon Sep 17 00:00:00 2001 From: dfsek Date: Fri, 6 Nov 2020 20:28:05 -0700 Subject: [PATCH] Split up testWithPaper and setupServer tasks --- README.md | 8 +++++--- build.gradle.kts | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ef1598182..42b12fcbc 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,14 @@ To build, simply run `./gradlew build` on Linux/MacOS, or `gradlew.bat build` on This will produce a jar in `build/libs` called `Terra-[CURRENT VERSION].jar`. You can put this right into your plugins dir, along with the correct Gaea version. -If you would like to test it with a default server config, just run `./gradlew testWithPaper` or `gradlew.bat testWithPaper`. +If you would like to test it with a default server config, just run `./gradlew setupServer` or +`./gradlew.bat setupServer` to set up the server, then `./gradlew testWithPaper` or `gradlew.bat testWithPaper` to run +the server. If you want a clean installation of the server, re-run the `setupServer` task. This will download a default server config from [here](https://github.com/PolyhedralDev/WorldGenTestServer) and install the server in the `target/server` directory, along with all the needed plugins. -**Note: You will need to adjust the `NAME` variable in test.sh if you are not using the default Terra config (you may -also change the value after server installation, in `bukkit.yml` of the test server)** +**Note: You will need to adjust the `NAME` variable `bukkit.yml` of the test server if you are not using the default +Terra config.** ## Contributing Contributions are welcome! If you want to see a feature in Terra, please, open an issue, or implement it yourself and diff --git a/build.gradle.kts b/build.gradle.kts index 796ffd955..675974341 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -92,8 +92,7 @@ val setupServer = tasks.create("setupServer") { } val testWithPaper = task(name = "testWithPaper") { - dependsOn(setupServer) - //dependsOn(tasks.shadowJar) + dependsOn(tasks.shadowJar) // Copy Terra into dir doFirst { copy {