Skip to content

Commit

Permalink
Generate run dirs for neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Dec 22, 2023
1 parent ea8bf4f commit fdd07ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ configurations {

tasks.named("shadowJar") {
def jarTask = tasks.named("jar")

archiveClassifier = jarTask.get().archiveClassifier
destinationDirectory = jarTask.get().destinationDirectory
configurations = [project.configurations.shade]
Expand Down Expand Up @@ -110,7 +110,7 @@ tasks.register("remapMultiLoaderTestJar", net.fabricmc.loom.task.RemapJarTask) {

dependsOn tasks.named("multiLoaderTestJar")
input = tasks.named("multiLoaderTestJar").get().archiveFile

dependsOn tasks.named("shadowJar")
classpath.from(tasks.named("shadowJar").get().archiveFile)
}
Expand All @@ -120,7 +120,7 @@ tasks.register("remapMultiLoaderTestSourcesJar", net.fabricmc.loom.task.RemapSou

dependsOn tasks.named("multiLoaderTestSourcesJar")
input = tasks.named("multiLoaderTestSourcesJar").get().archiveFile

dependsOn tasks.named("shadowJar")
classpath.from(tasks.named("shadowJar").get().archiveFile)
}
Expand Down
4 changes: 2 additions & 2 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ minecraft {

runs {
client {
workingDirectory file("run/client")
workingDirectory file("run/client").with { mkdirs(); it }

modSource sourceSets.main
}
server {
workingDirectory file("run/server")
workingDirectory file("run/server").with { mkdirs(); it }

modSource sourceSets.main
}
Expand Down

0 comments on commit fdd07ce

Please sign in to comment.