-
Notifications
You must be signed in to change notification settings - Fork 75
/
build.gradle
42 lines (39 loc) · 1.17 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
apply from: "config.gradle"
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
google()
maven { url "https://jitpack.io" }
maven { url "https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master" }
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
tasks.whenTaskAdded { task ->
// Android 测试相关
if (task.name.contains('AndroidTest')
|| task.name.contains('mockableAndroidJar')
|| task.name.contains('UnitTest')
//关闭NDK和JNI
|| task.name.contains('Ndk')
|| task.name.contains('Jni')) {
task.enabled = false
}
}