-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
executable file
·50 lines (43 loc) · 1.49 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
45
46
47
48
49
50
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.6.0'
ANDROID_COMPILE_SDK = 31
ANDROID_MIN_SDK = 16
ANDROID_TARGET_SDK = 31
gson_version = '2.8.2'
appcompat_version='1.3.0'
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
MAVEN_SNAPSHOTS_URL = properties.getProperty('MAVEN_SNAPSHOTS_URL')
MAVEN_RELEASE_URL = properties.getProperty('MAVEN_RELEASE_URL')
MAVEN_USERNAME = properties.getProperty('MAVEN_USERNAME')
MAVEN_PWD = properties.getProperty('MAVEN_PWD')
}
repositories {
google()
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath "cn.wzbos.android:chihiro-plugin:1.0.10"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=all']
jvmTarget = "11"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}