mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-17 21:25:31 +00:00
52 lines
1.7 KiB
Groovy
52 lines
1.7 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
apply from: './versions.gradle'
|
|
addRepos(repositories) //增加代码仓库
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:$versions.android_gradle_plugin"
|
|
classpath deps.android_maven_gradle_plugin
|
|
//图片压缩
|
|
classpath 'com.chenenyu:img-optimizer:1.2.0'
|
|
//美团多渠道打包
|
|
classpath 'com.meituan.android.walle:plugin:1.1.6'
|
|
//滴滴的质量优化框架
|
|
if (isNeedPackage.toBoolean() && isUseBooster.toBoolean()) {
|
|
classpath deps.booster.gradle_plugin
|
|
classpath deps.booster.task_processed_res
|
|
classpath deps.booster.task_resource_deredundancy
|
|
}
|
|
//AndServer
|
|
classpath 'cn.ppps.andserver:plugin:2.1.11'
|
|
}
|
|
}
|
|
|
|
//allprojects {
|
|
// addRepos(repositories)
|
|
//}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
|
maven { url 'https://oss.sonatype.org/content/repositories/public' }
|
|
maven { url "https://jitpack.io" }
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
|
|
FileTree tree = fileTree(dir: rootProject.getRootDir())
|
|
tree.each { File file ->
|
|
if (file.toString().contains("ajcore") && file.toString().endsWith(".txt")) {
|
|
delete file
|
|
}
|
|
}
|
|
}
|
|
|