Graphical from 8 to 9+

This commit is contained in:
ryoii 2020-03-28 17:04:14 +08:00
parent 099e76b188
commit daf75c4441
2 changed files with 9 additions and 9 deletions

View File

@ -5,11 +5,11 @@ plugins {
id("java")
}
//javafx {
// version = "13.0.2"
// modules = listOf("javafx.controls")
// //mainClassName = "Application"
//}
javafx {
version = "13.0.2"
modules = listOf("javafx.controls")
//mainClassName = "Application"
}
apply(plugin = "com.github.johnrengelman.shadow")
@ -45,7 +45,8 @@ dependencies {
api(project(":mirai-console"))
api(group = "no.tornado", name = "tornadofx", version = "1.7.19")
api(group = "com.jfoenix", name = "jfoenix", version = "8.0.8")
api(group = "com.jfoenix", name = "jfoenix", version = "9.0.8")
api(group = "com.jfoenix", name = "jfoenix", version = "9.0.8")
testApi(group = "org.yaml", name = "snakeyaml", version = "1.25")
}

View File

@ -40,12 +40,11 @@ try{
javaVersionNum = javaVersion.substring(0, versionPos).toInteger()
}
}
if (javaVersionNum <= 8) {
if (javaVersionNum >= 9) {
include(':mirai-console-graphical')
} else {
println("jdk版本为 "+ javaVersionNum)
println("当前使用的 JDK 版本为 ${System.getProperty("java.version")}, 模块 `:mirai-console-graphical`不支持JDK 9+\n" +
"请使用OracleJDK 1.8 或使用OpenJDK 1.8并添加Java Fx依赖")
println("当前使用的 JDK 版本为 ${System.getProperty("java.version")}, 请使用JDK 9以上版本引入模块 `:mirai-console-graphical`\n")
}
}catch(Exception ignored){