mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-19 09:19:14 +08:00
Add JDK version check
This commit is contained in:
parent
3fd6dc0728
commit
a00c5d895e
@ -8,7 +8,14 @@ include(':mirai-demos:mirai-demo-1')
|
|||||||
include(':mirai-demos:mirai-demo-gentleman')
|
include(':mirai-demos:mirai-demo-gentleman')
|
||||||
include(':mirai-demos')
|
include(':mirai-demos')
|
||||||
include(':mirai-demos:mirai-demo-android')
|
include(':mirai-demos:mirai-demo-android')
|
||||||
include(':mirai-debug')
|
|
||||||
|
def javaVersion = System.getProperty("java.version")
|
||||||
|
if (javaVersion.substring(0, javaVersion.indexOf(".")).toInteger() >= 11) {
|
||||||
|
include(':mirai-debug')
|
||||||
|
} else {
|
||||||
|
println("当前使用的 JDK 版本为 ${System.getProperty("java.version")}, 最低需要 JDK 11 才能引入模块 `:mirai-debug`")
|
||||||
|
}
|
||||||
|
|
||||||
project(':mirai-demos:mirai-demo-1').projectDir = file('mirai-demos/mirai-demo-1')
|
project(':mirai-demos:mirai-demo-1').projectDir = file('mirai-demos/mirai-demo-1')
|
||||||
project(':mirai-demos:mirai-demo-gentleman').projectDir = file('mirai-demos/mirai-demo-gentleman')
|
project(':mirai-demos:mirai-demo-gentleman').projectDir = file('mirai-demos/mirai-demo-gentleman')
|
||||||
project(':mirai-demos:mirai-demo-android').projectDir = file('mirai-demos/mirai-demo-android')
|
project(':mirai-demos:mirai-demo-android').projectDir = file('mirai-demos/mirai-demo-android')
|
||||||
|
Loading…
Reference in New Issue
Block a user