remapped mods need to persist after a clean to allow "clean build" to work

dev/0.11
asie 2019-04-21 14:39:51 +02:00
parent 07ab36a97d
commit 9a33598608
1 changed files with 10 additions and 2 deletions

View File

@ -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();
}