1 Star 0 Fork 378

ysdxhsw / SmsForwarder

forked from pppscn / SmsForwarder 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
pppscn 提交于 2024-01-29 20:14 . 升级:依赖版本
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//file:noinspection DependencyNotationArgument
buildscript {
apply from: './versions.gradle'
addRepos(repositories) //增加代码仓库
dependencies {
classpath deps.android_gradle_plugin
classpath deps.android_maven_gradle_plugin
//图片压缩
classpath 'com.chenenyu:img-optimizer:1.3.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.12'
}
}
//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" }
}
// 设置全局编码
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
// 设置文档编码
tasks.withType(Javadoc).configureEach {
options {
encoding 'UTF-8'
charSet 'UTF-8'
links 'http://docs.oracle.com/javase/7/docs/api'
}
}
// 将构建文件统一输出到项目根目录下的 build 文件夹
setBuildDir(new File(rootDir, "build/${path.replaceAll(':', '/')}"))
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
FileTree rootTree = fileTree(dir: rootDir)
rootTree.each { File file ->
if ((file.toString().contains("ajcore") || file.toString().contains("mapping") || file.toString().contains("seeds") || file.toString().contains("unused")) && file.toString().endsWith(".txt")) {
delete file
}
}
}
Kotlin
1
https://gitee.com/ysdxhsw/SmsForwarder.git
git@gitee.com:ysdxhsw/SmsForwarder.git
ysdxhsw
SmsForwarder
SmsForwarder
main

搜索帮助