2019-11-23 22:34:57 +08:00
|
|
|
pluginManagement {
|
|
|
|
resolutionStrategy {
|
|
|
|
eachPlugin {
|
|
|
|
switch (requested.id.id) {
|
|
|
|
case "org.jetbrains.kotlin.multiplatform": useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}"); break
|
|
|
|
case "com.android.library": useModule("com.android.tools.build:gradle:${requested.version}"); break
|
|
|
|
case "com.jfrog.bintray": useModule("com.jfrog.bintray.gradle:gradle-bintray-plugin:${requested.version}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2019-12-07 00:33:44 +08:00
|
|
|
mavenLocal()
|
2019-11-29 21:38:02 +08:00
|
|
|
jcenter()
|
2019-11-23 22:34:57 +08:00
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-12-19 17:25:49 +08:00
|
|
|
include(':mirai-core-timpc')
|
2019-12-23 19:31:13 +08:00
|
|
|
include(':mirai-core-qqandroid')
|
2019-10-30 23:00:29 +08:00
|
|
|
|
2019-10-03 19:07:03 +08:00
|
|
|
include(':mirai-console')
|
2019-12-02 17:57:14 +08:00
|
|
|
//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')
|