Ai
1 Star 0 Fork 1

Code-Product/Android_FrameWork

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.09 KB
一键复制 编辑 原始数据 按行查看 历史
zhaishaoping 提交于 2025-04-25 17:05 +08:00 . update framework
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: this.rootProject.file('config.gradle')
apply from: this.rootProject.file('build.checkARouter.gradle')
apply plugin: 'com.alibaba.arouter'
buildscript {
println("---------- 1. ext.isBuildModule = ${ext.isBuildModule}")
ext.kotlin_version = "1.7.20"
repositories {
maven {
url 'https://www.jitpack.io'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/public'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/google'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/central'
}
maven {
allowInsecureProtocol = true
url 'https://repo1.maven.org/maven2/'
}
maven {
allowInsecureProtocol = true
url "https://s01.oss.sonatype.org/content/groups/public"
}
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.alibaba:arouter-register:1.0.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
configurations.all {
it.resolutionStrategy.cacheDynamicVersionsFor(5, 'minutes')
it.resolutionStrategy.cacheChangingModulesFor(0, 'seconds')
}
}
allprojects {
repositories {
maven {
url 'https://www.jitpack.io'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/public'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/google'
}
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/repository/central'
}
maven {
allowInsecureProtocol = true
url 'https://repo1.maven.org/maven2/'
}
maven {
allowInsecureProtocol = true
url "https://s01.oss.sonatype.org/content/groups/public"
}
google()
mavenCentral()
}
}
task clean (type: Delete) {
delete rootProject.buildDir
}
project.tasks.whenTaskAdded { Task task ->
println"---------- whenTaskAdded task ${task.name} add"
if (task.name == "assembleDevDebug") {
task.dependsOn(checkARouterDuplicatedJavaFiles)
} else if (task.name == "transformClassesWithCom.alibaba.arouterForDevDebug") {
checkARouterDuplicatedJavaFiles.dependsOn(task)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/code-product/Android_FrameWork.git
git@gitee.com:code-product/Android_FrameWork.git
code-product
Android_FrameWork
Android_FrameWork
master

搜索帮助