66 lines
2.3 KiB
Groovy
66 lines
2.3 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||
buildscript {
|
||
repositories {
|
||
maven { url 'https://dl.bintray.com/yuangu/sxtwl' }
|
||
//在项目主工程的 build.gradle 引入融云maven仓库
|
||
maven { url "https://maven.rongcloud.cn/repository/maven-releases/"}
|
||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
|
||
// 配置荣耀SDK的Maven仓地址。
|
||
maven {url 'https://developer.hihonor.com/repo'}
|
||
|
||
google()
|
||
mavenCentral()
|
||
|
||
jcenter {
|
||
url "https://jcenter.bintray.com/"
|
||
}
|
||
maven { url 'https://jitpack.io' }
|
||
maven { url 'https://repo1.maven.org/maven2/' }
|
||
}
|
||
dependencies {
|
||
// 增加荣耀asplugin插件配置,推荐您使用最新版本。
|
||
classpath 'com.hihonor.mcs:asplugin:2.0.1.300'
|
||
classpath 'com.android.tools.build:gradle:7.1.3'
|
||
// 添加 lombok 支持(可选,有些 IDE 已自带)
|
||
classpath 'io.freefair.gradle:lombok-plugin:8.4'
|
||
|
||
// NOTE: Do not place your application dependencies here; they belong
|
||
// in the individual module build.gradle files
|
||
}
|
||
|
||
ext {
|
||
versions = [
|
||
kotlin : '1.8.22',
|
||
]
|
||
}
|
||
}
|
||
|
||
allprojects {
|
||
repositories {
|
||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
|
||
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
|
||
google()
|
||
jcenter()
|
||
mavenCentral()
|
||
|
||
// 配置SDK的Maven仓地址。
|
||
maven {url 'https://developer.hihonor.com/repo'}
|
||
maven {
|
||
url "https://jitpack.io"
|
||
}
|
||
maven { url 'https://repo1.maven.org/maven2/' }
|
||
flatDir {
|
||
dirs 'libs'
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
task clean(type: Delete) {
|
||
delete rootProject.buildDir
|
||
} |