File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ propertyDefaultIfUnset("forceEnableMixins", false)
6969propertyDefaultIfUnset(" usesShadowedDependencies" , false )
7070propertyDefaultIfUnset(" minimizeShadowedDependencies" , true )
7171propertyDefaultIfUnset(" relocateShadowedDependencies" , true )
72+ propertyDefaultIfUnset(" separateRunDirectories" , false )
7273propertyDefaultIfUnsetWithEnvVar(" modrinthProjectId" , " " , " MODRINTH_PROJECT_ID" )
7374propertyDefaultIfUnset(" modrinthRelations" , " " )
7475propertyDefaultIfUnsetWithEnvVar(" curseForgeProjectId" , " " , " CURSEFORGE_PROJECT_ID" )
@@ -592,6 +593,17 @@ jar {
592593 }
593594}
594595
596+ // Configure default run tasks
597+ if (separateRunDirectories. toBoolean()) {
598+ runClient {
599+ workingDir = file(' run/client' )
600+ }
601+
602+ runServer {
603+ workingDir = file(' run/server' )
604+ }
605+ }
606+
595607// Create API library jar
596608tasks. register(' apiJar' , Jar ) {
597609 archiveClassifier. set ' api'
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ minimizeShadowedDependencies = true
8080# If disabled, won't rename the shadowed classes.
8181relocateShadowedDependencies = true
8282
83+ # Separate run directories into "run/client" for runClient task, and "run/server" for runServer task.
84+ # Useful for debugging a server and client simultaneously. If not enabled, it will be in the standard location "run/"
85+ separateRunDirectories = false
86+
8387
8488# Publishing to modrinth requires you to set the MODRINTH_API_KEY environment variable to your current modrinth API token.
8589
You can’t perform that action at this time.
0 commit comments