apply terrible workaround for source remapper/JDT? bug (Mercury devs notified)

dev/0.11
Adrian Siekierka 2018-12-28 22:08:36 +01:00
parent 623d1544a0
commit da03fd2827
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ import java.util.Map;
public class SourceRemapper { public class SourceRemapper {
public static void remapSources(Project project, File source, File destination, boolean toNamed) throws Exception { public static void remapSources(Project project, File source, File destination, boolean toNamed) throws Exception {
remapSourcesInner(project, source, destination, toNamed);
// TODO: FIXME - WORKAROUND https://github.com/FabricMC/fabric-loom/issues/45
System.gc();
}
private static void remapSourcesInner(Project project, File source, File destination, boolean toNamed) throws Exception {
LoomGradleExtension extension = project.getExtensions().getByType(LoomGradleExtension.class); LoomGradleExtension extension = project.getExtensions().getByType(LoomGradleExtension.class);
MappingsProvider mappingsProvider = extension.getMappingsProvider(); MappingsProvider mappingsProvider = extension.getMappingsProvider();