mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
remapped mods need to persist after a clean to allow "clean build" to work
This commit is contained in:
@@ -93,6 +93,14 @@ public class LoomGradleExtension {
|
||||
return userCache;
|
||||
}
|
||||
|
||||
public File getRootProjectPersistentCache() {
|
||||
File projectCache = new File(project.file(".gradle"), "loom-cache");
|
||||
if(!projectCache.exists()){
|
||||
projectCache.mkdirs();
|
||||
}
|
||||
return projectCache;
|
||||
}
|
||||
|
||||
public File getRootProjectBuildCache() {
|
||||
File projectCache = new File(project.getRootProject().getBuildDir(), "loom-cache");
|
||||
if(!projectCache.exists()){
|
||||
@@ -110,7 +118,7 @@ public class LoomGradleExtension {
|
||||
}
|
||||
|
||||
public File getRemappedModCache() {
|
||||
File remappedModCache = new File(getRootProjectBuildCache(), "remapped_mods");
|
||||
File remappedModCache = new File(getRootProjectPersistentCache(), "remapped_mods");
|
||||
if (!remappedModCache.exists()) {
|
||||
remappedModCache.mkdir();
|
||||
}
|
||||
@@ -118,7 +126,7 @@ public class LoomGradleExtension {
|
||||
}
|
||||
|
||||
public File getNestedModCache() {
|
||||
File nestedModCache = new File(getRootProjectBuildCache(), "nested_mods");
|
||||
File nestedModCache = new File(getRootProjectPersistentCache(), "nested_mods");
|
||||
if (!nestedModCache.exists()) {
|
||||
nestedModCache.mkdir();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user