mirai/settings.gradle

24 lines
901 B
Groovy
Raw Normal View History

2019-10-03 19:07:03 +08:00
rootProject.name = 'mirai'
2019-10-30 23:00:29 +08:00
2019-10-03 19:07:03 +08:00
include(':mirai-core')
2019-10-30 23:00:29 +08:00
2019-10-03 19:07:03 +08:00
include(':mirai-console')
include(':mirai-api')
2019-11-21 21:31:05 +08:00
include(':mirai-api-http')
2019-10-03 19:07:03 +08:00
include(':mirai-demos:mirai-demo-1')
2019-10-26 17:06:40 +08:00
include(':mirai-demos:mirai-demo-gentleman')
2019-10-03 19:07:03 +08:00
include(':mirai-demos')
2019-11-06 21:22:23 +08:00
include(':mirai-demos:mirai-demo-android')
2019-11-18 13:52:31 +08:00
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`")
}
2019-10-19 13:41:36 +08:00
project(':mirai-demos:mirai-demo-1').projectDir = file('mirai-demos/mirai-demo-1')
2019-10-26 17:06:40 +08:00
project(':mirai-demos:mirai-demo-gentleman').projectDir = file('mirai-demos/mirai-demo-gentleman')
2019-11-06 21:22:23 +08:00
project(':mirai-demos:mirai-demo-android').projectDir = file('mirai-demos/mirai-demo-android')
2019-10-19 13:41:36 +08:00
2019-11-06 21:22:23 +08:00
enableFeaturePreview('GRADLE_METADATA')