19 Star 173 Fork 46

Yuye / iPlayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Yuye 提交于 2022-09-01 14:21 . 2.0.2
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
allprojects {
repositories {
google()
jcenter()
//本地Maven仓库地址,取决于你的磁盘目录
// maven { url 'file://D://AndroidStudioProjects//iPlayer//maven' }
maven { url 'https://jitpack.io' }
}
//编译时报注释GBK编码错误解决
tasks.withType(Javadoc) {
//方法上忽略@return和@param注解未添加说明注释
options.addStringOption('Xdoclint:none', '-quiet')
//解决GBK编码错误提示
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
//跳过构建时link检查
tasks.whenTaskAdded { task ->
if (task.name.equals("lint")) {
task.enabled = false
}
}
}
//当androidx.core 版本冲突时,强制gradle使用指定版本
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency {
details -> if (details.requested.group == 'androidx.core' && !details.requested.name.contains('androidx'))
{ details.useVersion "1.6.0" }
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Android
1
https://gitee.com/hty527/iPlayer.git
git@gitee.com:hty527/iPlayer.git
hty527
iPlayer
iPlayer
main

搜索帮助