forked from project-mirai/mirai-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (40 loc) · 1.27 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
buildscript {
repositories {
mavenLocal()
//国内镜像源
//maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
//maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
jcenter()
google()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap'}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.android.tools.build:gradle:3.5.3'
}
}
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 ignored) {
}
allprojects {
group = "net.mamoe"
repositories {
mavenLocal()
//国内镜像源
//maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
//maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
jcenter()
mavenCentral()
google()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap'}
}
}