diff --git a/build.gradle b/build.gradle index 7758175..30b0859 100644 --- a/build.gradle +++ b/build.gradle @@ -18,9 +18,14 @@ dependencies { compile 'org.lwjgl.lwjgl:lwjgl:2.8.5' } +task sourcesJar(type: Jar) { + classifier = 'sources' + from sourceSets.main.allSource +} + artifacts { archives jar - //archives sourcesJar + archives sourcesJar } def repoDir = new File(projectDir, "repo") @@ -45,3 +50,7 @@ uploadArchives { } } } + +clean << { + repoDir.deleteDir() +} diff --git a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java index 3138554..a8e45c8 100644 --- a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java +++ b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java @@ -382,8 +382,7 @@ public class LaunchClassLoader extends URLClassLoader { } } - public void clearNegativeEntries(Set entriesToClear) - { + public void clearNegativeEntries(Set entriesToClear) { negativeResourceCache.removeAll(entriesToClear); } }