summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorRobert Kämpf <48529807+PlatinPython@users.noreply.github.com>2023-08-09 10:58:54 +0200
committerGitHub <noreply@github.com>2023-08-09 16:58:54 +0800
commit378bff4509b9d9669f83ea300799234828a7e679 (patch)
tree1da277fda3fb058acc448b719bd24ab4b25f1c90 /build.gradle
parent303e6e548c70c2269a7adbef2500e610e4fb0729 (diff)
Make each run config use its own subfolder and add 'run-data' to .gitignore (#7)
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index a9a7d11..78c0879 100644
--- a/build.gradle
+++ b/build.gradle
@@ -62,7 +62,7 @@ minecraft {
runs {
// applies to all the run configs below
configureEach {
- workingDirectory project.file('run')
+ workingDirectory project.file("run/${it.name}")
// Recommended logging data for a userdev environment
// The markers can be added/remove as needed separated by commas.
@@ -101,8 +101,8 @@ minecraft {
}
data {
- // example of overriding the workingDirectory set in configureEach above
- workingDirectory project.file('run-data')
+ // example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
+ // workingDirectory project.file('run-data')
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')