mirai/build.gradle

49 lines
1.5 KiB
Groovy
Raw Normal View History

2019-10-03 19:07:03 +08:00
buildscript {
repositories {
2019-12-07 00:33:44 +08:00
mavenLocal()
jcenter()
2019-11-29 23:54:10 +08:00
mavenCentral()
2019-10-30 23:00:29 +08:00
google()
2020-02-15 22:54:17 +08:00
maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
2020-01-24 17:57:13 +08:00
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev/'}
2019-10-03 19:07:03 +08:00
}
dependencies {
2019-11-25 14:15:08 +08:00
// Do try to waste your time.
classpath 'com.android.tools.build:gradle:3.5.3'
2019-11-17 12:52:48 +08:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
2020-02-13 21:11:00 +08:00
classpath("com.github.jengelman.gradle.plugins:shadow:5.2.0")
2019-11-17 12:52:48 +08:00
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion"
2019-10-03 19:07:03 +08:00
}
}
2020-02-13 21:11:00 +08:00
try {
def keyProps = new Properties()
def keyFile = file("local.properties")
if (keyFile.exists()) keyFile.withInputStream { keyProps.load(it) }
if (!keyProps.getProperty("sdk.dir", "").isEmpty()) {
project.ext.set("isAndroidSDKAvailable", true)
} else {
project.ext.set("isAndroidSDKAvailable", false)
}
}catch(Exception e){}
2019-10-03 19:07:03 +08:00
allprojects {
group = "net.mamoe"
version = getProperty("mirai_version")
2019-10-03 19:07:03 +08:00
2019-11-23 22:34:57 +08:00
// tasks.withType(KotlinCompile).all { task ->
// task.kotlinOptions{
// jvmTarget = '1.6'
// }
// }
2019-10-03 19:07:03 +08:00
repositories {
2019-12-07 00:33:44 +08:00
mavenLocal()
jcenter()
2019-11-29 23:54:10 +08:00
mavenCentral()
2019-10-30 23:00:29 +08:00
google()
2019-11-15 10:39:00 +08:00
maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
maven { url "https://dl.bintray.com/kotlin/kotlin-dev" }
2019-10-03 19:07:03 +08:00
}
2019-11-23 22:34:57 +08:00
}