Files
fuzhu/build.gradle
2026-01-05 15:39:47 +08:00

64 lines
2.0 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// 非常重要根目录的build.gradle头部加入自定义gradle相当于layout布局中include
apply from : "app_config.gradle"
buildscript {
ext {
agp_version = '8.7.3'
}
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:$agp_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.6"
// Kotlin 标准库DataBinding 编译器在 AGP 8.x 中需要)
classpath 'org.jetbrains.kotlin:kotlin-stdlib:1.9.22'
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google
flatDir {
dirs 'libs'
}
google()
jcenter()
maven { url "https://jitpack.io"}
maven { url "https://www.jitpack.io" }
// maven { url 'https://dl.bintray.com/aweme-open-sdk-team/public' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}