From fd6ae986c32211b586b7a874edd36fde9c050da6 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Tue, 13 Nov 2018 21:20:14 +0800 Subject: [PATCH] Fixed #485 --- build.gradle | 112 ++++++++++++++++++++++++++------------------------- 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/build.gradle b/build.gradle index b83739842..7418c2e8f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,55 +1,57 @@ -/* - * Hello Minecraft! Launcher. - * Copyright (C) 2018 huangyuhui - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see {http://www.gnu.org/licenses/}. - */ - -group 'org.jackhuang' -version '3.0' - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'org.tukaani:xz:1.8' - } -} - - -subprojects { - apply plugin: 'java' - apply plugin: 'idea' - - repositories { - mavenCentral() - jcenter() - - maven { url 'https://jitpack.io' } - } - - sourceCompatibility = 1.8 - - dependencies { - compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5' - compile group: 'org.tukaani', name: 'xz', version: '1.8' - compile group: 'org.hildan.fxgson', name: 'fx-gson', version: '3.1.0' - compile group: 'org.jenkins-ci', name: 'constant-pool-scanner', version: '1.2' - compile group: 'com.github.steveice10', name: 'opennbt', version: '1.1' - - testCompile group: 'junit', name: 'junit', version: '4.12' - } - -} +/* + * Hello Minecraft! Launcher. + * Copyright (C) 2018 huangyuhui + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see {http://www.gnu.org/licenses/}. + */ + +group 'org.jackhuang' +version '3.0' + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'org.tukaani:xz:1.8' + } +} + + +subprojects { + apply plugin: 'java' + apply plugin: 'idea' + + repositories { + mavenCentral() + jcenter() + + maven { url 'https://jitpack.io' } + } + + sourceCompatibility = 1.8 + compileJava.options.encoding = "UTF-8" + compileTestJava.options.encoding = "UTF-8" + + dependencies { + compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5' + compile group: 'org.tukaani', name: 'xz', version: '1.8' + compile group: 'org.hildan.fxgson', name: 'fx-gson', version: '3.1.0' + compile group: 'org.jenkins-ci', name: 'constant-pool-scanner', version: '1.2' + compile group: 'com.github.steveice10', name: 'opennbt', version: '1.1' + + testCompile group: 'junit', name: 'junit', version: '4.12' + } + +}