From 3abe5937f8f41c0cdcca1c073f9a38145d69bdf8 Mon Sep 17 00:00:00 2001 From: Elenterius Date: Thu, 21 Mar 2024 23:13:16 +0100 Subject: [PATCH] build(gradle): use separate working directory for running the server --- .gitignore | 1 + build.gradle | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c329d5d8e..9a34d7cef 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,5 @@ forge*changelog.txt # custom logs /run-data/ +/run-server/ diff --git a/build.gradle b/build.gradle index a86489b0c..3326d1b6d 100644 --- a/build.gradle +++ b/build.gradle @@ -103,6 +103,8 @@ minecraft { } server { + workingDirectory project.file('run-server') + property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } @@ -115,7 +117,6 @@ minecraft { } data { - // example of overriding the workingDirectory set in configureEach above workingDirectory project.file('run-data') // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.