mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 00:20:09 +08:00
e39fe5a46f
# Conflicts: # mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt # mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/HighwayHelper.kt # mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/highway.kt # mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/login/WtLogin.kt # mirai-core/build.gradle.kts # mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt # mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt # mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/channels.kt # mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/chunked.kt # mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/input.kt # mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
import java.lang.System.getProperty
|
|
import java.util.*
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
|
jcenter()
|
|
// mavenCentral()
|
|
google()
|
|
// maven (url="https://dl.bintray.com/kotlin/kotlin-eap")
|
|
}
|
|
|
|
dependencies {
|
|
val kotlinVersion: String by project
|
|
val atomicFuVersion: String by project
|
|
|
|
classpath("com.android.tools.build:gradle:3.5.3")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
classpath("com.github.jengelman.gradle.plugins:shadow:5.2.0")
|
|
@kotlin.Suppress("GradleDependency") // 1.3.70 有 bug, 无法编译添加 SerialInfo
|
|
classpath("org.jetbrains.kotlin:kotlin-serialization:1.3.61") // 不要用 $kotlinVersion
|
|
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion")
|
|
}
|
|
}
|
|
|
|
runCatching {
|
|
val keyProps = Properties().apply {
|
|
file("local.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) }
|
|
}
|
|
if (keyProps.getProperty("sdk.dir", "").isNotEmpty()) {
|
|
project.ext.set("isAndroidSDKAvailable", true)
|
|
} else {
|
|
project.ext.set("isAndroidSDKAvailable", false)
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
group = "net.mamoe"
|
|
version = getProperty("miraiVersion")
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven(url = "https://mirrors.huaweicloud.com/repository/maven")
|
|
jcenter()
|
|
// mavenCentral()
|
|
google()
|
|
// maven (url="https://dl.bintray.com/kotlin/kotlin-eap")
|
|
}
|
|
} |