46 lines
1.5 KiB
Groovy
46 lines
1.5 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '1.7.10'
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven{url 'https://maven.aliyun.com/repository/google' }
|
|
maven{url 'https://maven.aliyun.com/repository/google-plugin' }
|
|
maven{url 'https://maven.aliyun.com/repository/public' }
|
|
maven{url 'https://maven.aliyun.com/repository/jcenter' }
|
|
maven {url 'https://developer.huawei.com/repo/'}
|
|
maven { url 'https://developer.hihonor.com/repo/' }
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.0.0'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url "https://storage.googleapis.com/download.flutter.io" }
|
|
maven { url "https://jitpack.io" }
|
|
maven { url 'https://mvn.getui.com/nexus/content/repositories/releases' }
|
|
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
|
maven {url 'https://developer.huawei.com/repo/'}
|
|
maven { url 'https://developer.hihonor.com/repo/' }
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|