34 lines
976 B
Groovy
34 lines
976 B
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:7.4.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/jcenter' } // 代替 jc
|
||
|
|
google()
|
||
|
|
mavenCentral()
|
||
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
||
|
|
}
|
||
|
|
|
||
|
|
// 提示过时的API
|
||
|
|
// gradle.projectsEvaluated {
|
||
|
|
// tasks.withType(JavaCompile) {
|
||
|
|
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
}
|
||
|
|
|
||
|
|
task clean(type: Delete) {
|
||
|
|
delete rootProject.buildDir
|
||
|
|
}
|