系统构建级别Gradle优化
-添加阿里云国内镜像 -添加一些Gradle注释
This commit is contained in:
parent
2222ba6fec
commit
5b3bdcb6e0
28
build.gradle
28
build.gradle
|
@ -1,19 +1,27 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven { url 'https://repo1.maven.org/maven2/' }
|
||||
maven {url 'https://dl.google.com/dl/android/maven2/'}
|
||||
}
|
||||
dependencies {
|
||||
//noinspection AndroidGradlePluginVersion
|
||||
classpath 'com.android.tools.build:gradle:7.2.0'
|
||||
// classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
|
||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0'
|
||||
classpath 'com.google.gms:google-services:4.3.14'
|
||||
classpath 'com.google.firebase:perf-plugin:1.4.2'
|
||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
|
||||
|
||||
//Do n't Update
|
||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0'
|
||||
|
||||
//noinspection GradleDependency
|
||||
classpath 'com.google.gms:google-services:4.3.14'
|
||||
//noinspection GradleDependency
|
||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
|
||||
// classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
|
||||
classpath 'com.google.firebase:perf-plugin:1.4.2'
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
||||
|
@ -23,12 +31,14 @@ buildscript {
|
|||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://jitpack.io"
|
||||
}
|
||||
maven { url 'https://repo1.maven.org/maven2/' }
|
||||
maven {url 'https://dl.google.com/dl/android/maven2/'}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user