Update Gradle

This commit is contained in:
huangyuhui 2017-11-04 10:22:37 +08:00
parent b5fbc69ee6
commit 47d8b59b93
5 changed files with 8 additions and 7 deletions

View File

@ -24,9 +24,9 @@ import java.util.zip.ZipEntry
import java.util.zip.ZipFile import java.util.zip.ZipFile
plugins { plugins {
id "edu.sc.seis.macAppBundle" version "2.1.6" id "edu.sc.seis.macAppBundle" version "2.1.8"
id "me.tatarka.retrolambda" version "3.5.0" id "me.tatarka.retrolambda" version "3.7.0"
id 'edu.sc.seis.launch4j' version '2.3.0' id 'edu.sc.seis.launch4j' version '2.4.2'
//id "org.jetbrains.kotlin.jvm" version "1.1.2-2" //id "org.jetbrains.kotlin.jvm" version "1.1.2-2"
} }

View File

@ -88,8 +88,7 @@ public abstract class AbstractMinecraftLoader implements IMinecraftLoader {
if (jv == null || !jv.isEarlyAccess()) { if (jv == null || !jv.isEarlyAccess()) {
if (jv != null && jv.getParsedVersion() >= JdkVersion.JAVA_17) if (jv != null && jv.getParsedVersion() >= JdkVersion.JAVA_17)
res.add("-XX:+UseG1GC"); res.add("-XX:+UseG1GC");
else
res.add("-Xincgc");
res.add("-XX:-UseAdaptiveSizePolicy"); res.add("-XX:-UseAdaptiveSizePolicy");
res.add("-XX:-OmitStackTraceInFastThrow"); res.add("-XX:-OmitStackTraceInFastThrow");

View File

@ -121,6 +121,8 @@ public class Java {
try { try {
queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Runtime Environment\\"); queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Runtime Environment\\");
queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\"); queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\");
queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\JRE\\");
queryJava(ans, "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\JDK\\");
} catch (IOException | InterruptedException ex) { } catch (IOException | InterruptedException ex) {
HMCLog.err("Faield to query java", ex); HMCLog.err("Faield to query java", ex);
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.2.1-bin.zip distributionUrl=https://services.gradle.org/distributions/gradle-4.3-bin.zip

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see {http://www.gnu.org/licenses/}. * along with this program. If not, see {http://www.gnu.org/licenses/}.
*/ */
rootProject.name = 'Hello Minecraft' rootProject.name = 'Hello_Minecraft'
// Find the directories containing a "build.gradle" file in the root directory // Find the directories containing a "build.gradle" file in the root directory
// of the project. That is, every directory containing a "build.gradle" will // of the project. That is, every directory containing a "build.gradle" will