加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
Delete 提交于 2024-09-19 21:13 . no commit message
//buildscript {
// ext {
// wear_compose_version = '1.0.0'
// }
//}// Top-level build file where you can add configuration options common to all sub-projects/modules.
//plugins {
// id 'com.android.application' version '8.0.2' apply false
// id 'com.android.library' version '8.0.2' apply false
// id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
//}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenLocal()
maven { url 'https://repo1.maven.org/maven2/' }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central/' }
maven { url 'https://jitpack.io' }
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
}
}
allprojects{
repositories {
mavenLocal()
maven { url 'https://repo1.maven.org/maven2/' }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central/' }
maven { url 'https://jitpack.io' }
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//task cacheToMavenLocal(type: Copy) {
// println("hello,gradle ==> " + repositories.mavenLocal().url)
// println("hello,gradle ==> " + gradle.gradleUserHomeDir)
// from new File(gradle.gradleUserHomeDir, 'caches/modules-2/files-2.1')
// into repositories.mavenLocal().url
// eachFile {
// List<String> parts = it.path.split('/')
// it.path = (parts[0]+ '/' + parts[1]).replace('.','/') + '/' + parts[2] + '/' + parts[4]
// }
// includeEmptyDirs false
// duplicatesStrategy "EXCLUDE"
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化