Resolve run working directory from rootProject

This commit is contained in:
Jason Penilla 2021-06-12 20:35:03 -07:00
parent 4b48806b39
commit 266a44e61c

View File

@ -107,7 +107,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+fun TaskContainer.registerRunTask(name: String, block: JavaExec.() -> Unit): TaskProvider<JavaExec> =
+ register<JavaExec>(name) {
+ group = "Paper"
+ workingDir = layout.projectDirectory.dir(
+ workingDir = rootProject.layout.projectDirectory.dir(
+ providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run")
+ ).get().asFile
+ doFirst {