From 4f109766704fdeba3d2d253d4662a6f8a70980f9 Mon Sep 17 00:00:00 2001 From: richie Date: Tue, 2 Jun 2020 19:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c9184f9..d8266ef 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,10 @@ task install(type: Copy) { from configurations.runtimeClasspath } +def isWindows() { + return org.gradle.internal.os.OperatingSystem.current().isWindows() +} + dependencies { compile files("${System.getProperty('java.home')}/../lib/tools.jar") implementation 'com.fr.third:fine-third:' + fineVersion @@ -48,7 +52,7 @@ dependencies { implementation 'org.apache.tomcat:tomcat-jasper:8.5.32' implementation 'mysql:mysql-connector-java:5.1.44' implementation 'com.fr.third:jxbrowser:6.23.1' - implementation 'com.fr.third:jxbrowser-mac:6.23.1' + implementation group:"com.fr.third", name: isWindows() ? "jxbrowser-win64" :"jxbrowser-mac",version:"6.23.1" implementation 'org.slf4j:slf4j-api:1.7.30' implementation 'org.slf4j:slf4j-simple:1.7.30' testImplementation 'junit:junit:4.12'