12345678910111213141516171819202122232425262728293031323334353637383940 |
- ext {
- sourceCompatibility = JavaVersion.VERSION_1_8
- }// Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- repositories {
- // google()
- // jcenter()
- //对应google()
- maven {url 'https://maven.aliyun.com/repository/google'}
- //对应jcenter()
- maven {url 'https://maven.aliyun.com/repository/jcenter'}
- //公共库
- maven {url 'https://maven.aliyun.com/repository/public'}
- maven { url "https://jitpack.io" }
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:4.2.0'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- // google()
- // jcenter()
- maven {url 'https://maven.aliyun.com/repository/google'}
- maven {url 'https://maven.aliyun.com/repository/jcenter'}
- maven {url 'https://maven.aliyun.com/repository/public'}
- maven {url 'https://jitpack.io'}
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
|