35 lines
1.0 KiB
Groovy
35 lines
1.0 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.12.2'
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
maven { url 'https://jitpack.io' }
|
|
maven { url 'https://maven.aliyun.com/repository/public/' }
|
|
maven { url 'https://maven.aliyun.com/repository/jcenter' } // 代替 jc
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
// 提示过时的API
|
|
// gradle.projectsEvaluated {
|
|
// tasks.withType(JavaCompile) {
|
|
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
// }
|
|
// }
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
} |