2023-07-10 17:50:31 +08:00
|
|
|
buildscript {
|
2023-09-23 18:35:06 +08:00
|
|
|
ext.kotlin_version = '1.8.20'
|
2023-07-10 17:50:31 +08:00
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
2023-11-01 14:18:52 +08:00
|
|
|
mavenLocal()
|
2024-01-19 11:45:34 +08:00
|
|
|
maven { // 添加Maven仓库地址
|
|
|
|
|
url 'https://maven.aliyun.com/nexus/content/repositories/releases/'
|
|
|
|
|
}
|
2023-07-10 17:50:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
classpath 'com.android.tools.build:gradle:7.1.2'
|
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2024-01-19 11:45:34 +08:00
|
|
|
// 添加emas-services插件
|
|
|
|
|
classpath 'com.aliyun.ams:emas-services:1.0.4'
|
2023-07-10 17:50:31 +08:00
|
|
|
}
|
2023-07-18 18:10:57 +08:00
|
|
|
|
2023-07-10 17:50:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
2023-09-28 18:05:23 +08:00
|
|
|
// mavenCentral()
|
|
|
|
|
jcenter()
|
2024-01-19 11:45:34 +08:00
|
|
|
maven { // 添加Maven仓库地址
|
|
|
|
|
url 'https://maven.aliyun.com/nexus/content/repositories/releases/'
|
|
|
|
|
}
|
2023-07-10 17:50:31 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rootProject.buildDir = '../build'
|
|
|
|
|
subprojects {
|
|
|
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
|
|
|
}
|
|
|
|
|
subprojects {
|
|
|
|
|
project.evaluationDependsOn(':app')
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-08 09:42:35 +08:00
|
|
|
tasks.register("clean", Delete) {
|
2023-07-10 17:50:31 +08:00
|
|
|
delete rootProject.buildDir
|
|
|
|
|
}
|