remapped mods need to persist after a clean to allow "clean build" to work
parent
07ab36a97d
commit
9a33598608
|
@ -93,6 +93,14 @@ public class LoomGradleExtension {
|
||||||
return userCache;
|
return userCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public File getRootProjectPersistentCache() {
|
||||||
|
File projectCache = new File(project.file(".gradle"), "loom-cache");
|
||||||
|
if(!projectCache.exists()){
|
||||||
|
projectCache.mkdirs();
|
||||||
|
}
|
||||||
|
return projectCache;
|
||||||
|
}
|
||||||
|
|
||||||
public File getRootProjectBuildCache() {
|
public File getRootProjectBuildCache() {
|
||||||
File projectCache = new File(project.getRootProject().getBuildDir(), "loom-cache");
|
File projectCache = new File(project.getRootProject().getBuildDir(), "loom-cache");
|
||||||
if(!projectCache.exists()){
|
if(!projectCache.exists()){
|
||||||
|
@ -110,7 +118,7 @@ public class LoomGradleExtension {
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getRemappedModCache() {
|
public File getRemappedModCache() {
|
||||||
File remappedModCache = new File(getRootProjectBuildCache(), "remapped_mods");
|
File remappedModCache = new File(getRootProjectPersistentCache(), "remapped_mods");
|
||||||
if (!remappedModCache.exists()) {
|
if (!remappedModCache.exists()) {
|
||||||
remappedModCache.mkdir();
|
remappedModCache.mkdir();
|
||||||
}
|
}
|
||||||
|
@ -118,7 +126,7 @@ public class LoomGradleExtension {
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getNestedModCache() {
|
public File getNestedModCache() {
|
||||||
File nestedModCache = new File(getRootProjectBuildCache(), "nested_mods");
|
File nestedModCache = new File(getRootProjectPersistentCache(), "nested_mods");
|
||||||
if (!nestedModCache.exists()) {
|
if (!nestedModCache.exists()) {
|
||||||
nestedModCache.mkdir();
|
nestedModCache.mkdir();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue