2021-02-10 06:38:05 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
ext.kotlin_version = '1.4.30'
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
2021-02-12 10:34:05 +00:00
|
|
|
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
2021-06-14 09:48:58 +00:00
|
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
2021-02-12 10:34:05 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-06-14 09:48:58 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:4.2.1'
|
2021-02-10 06:38:05 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2021-02-12 11:51:21 +00:00
|
|
|
classpath 'com.chenenyu:img-optimizer:1.2.0' //图片压缩
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
2021-02-12 10:34:05 +00:00
|
|
|
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
2021-06-14 09:48:58 +00:00
|
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
2021-02-12 10:34:05 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|