fix forge issues with already deleted lib folders

This commit is contained in:
James Seibel
2024-04-18 21:07:09 -05:00
parent 982ae0c0a0
commit ed28bcd0ba
+10 -3
View File
@@ -62,9 +62,16 @@ afterEvaluate {
// TODO can we just ignore these folders instead?
// deleting them may cause issues if the OS locks the files
// and it feels hacky
delete file("../common/build/libs")
delete file("../coreSubProjects/core/build/libs")
delete file("../coreSubProjects/api/build/libs")
try
{
delete file("../common/build/libs")
delete file("../coreSubProjects/core/build/libs")
delete file("../coreSubProjects/api/build/libs")
}
catch (ignored)
{
println('lib directories already deleted')
}
}
}