Skip to content

Commit

Permalink
Optimize build memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Nov 18, 2023
1 parent edf7ff2 commit a79d879
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ allprojects {
jar {
manifest.attributes("Implementation-Version" to provider { project.version })
}

withType<net.fabricmc.loom.task.AbstractRemapJarTask> {
remapperIsolation.set(false)
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.jvmargs=-Xmx4G
org.gradle.parallel=true

loom.platform=forge
fabric.loom.multiProjectOptimisation=true

# Versions
versionMc=1.20.1
Expand Down

0 comments on commit a79d879

Please sign in to comment.