android_artprofessor/build.gradle

64 lines
2.1 KiB
Groovy
Raw Normal View History

2025-07-31 16:36:28 +08:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
/**
* gradle文件
*/
apply from: "config.gradle"
buildscript {
repositories {
google()
// jcenter()
// maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
allowInsecureProtocol = true
url 'https://www.airkoon.cn/nexus/repository/airkoon-maven'
credentials{
username("hongrd")
password("hongrd123")
}
}
mavenCentral() // add repository
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.0'
//避免butterKnife在library中使用出现id冲突
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
classpath 'org.aspectj:aspectjtools:1.8.9'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
}
}
allprojects {
repositories {
google()
// jcenter()
maven { url "https://jitpack.io" }
maven {
url 'https://maven.aliyun.com/repository/public/'
}
// maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven {
allowInsecureProtocol = true
url 'https://www.airkoon.cn/nexus/repository/airkoon-maven'
credentials{
username("wum")
password("12345678")
}
}
/*flatDir {
// 由于Library module中引用了 gif 库的 aar在多 module 的情况下,
// 其他的module编译会报错所以需要在所有工程的repositories
// 下把Library module中的libs目录添加到依赖关系中
dirs project(':common_base').file('libs')
}*/
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}