Skip to content

Commit

Permalink
build(gradle): use separate working directory for running the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed May 29, 2024
1 parent 137dec3 commit a6489d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ forge*changelog.txt
# custom
logs
/run-data/
/run-server/

3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ minecraft {
}

server {
workingDirectory project.file('run-server')

property 'forge.enabledGameTestNamespaces', mod_id
args '--nogui'
}
Expand All @@ -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.
Expand Down

0 comments on commit a6489d1

Please sign in to comment.