diff options
| author | Robert Kämpf <48529807+PlatinPython@users.noreply.github.com> | 2023-08-09 10:58:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 16:58:54 +0800 |
| commit | 378bff4509b9d9669f83ea300799234828a7e679 (patch) | |
| tree | 1da277fda3fb058acc448b719bd24ab4b25f1c90 | |
| parent | 303e6e548c70c2269a7adbef2500e610e4fb0729 (diff) | |
Make each run config use its own subfolder and add 'run-data' to .gitignore (#7)
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | build.gradle | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -19,4 +19,5 @@ build # other eclipse -run
\ No newline at end of file +run +run-data
\ No newline at end of file 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/') |
