chore: 初始化 Android 工程骨架(Compose + Gradle 8.14/AGP 8.13.1)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// 插件仓库:仅 google 的插件走 google()(按 group 过滤),其余走 Maven Central / 插件门户。
|
||||
pluginManagement {
|
||||
repositories {
|
||||
google {
|
||||
content {
|
||||
includeGroupByRegex("com\\.android.*")
|
||||
includeGroupByRegex("com\\.google.*")
|
||||
includeGroupByRegex("androidx.*")
|
||||
}
|
||||
}
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
// 依赖仓库统一在此声明,禁止各模块自行声明仓库(FAIL_ON_PROJECT_REPOS)。
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "ring-health-app"
|
||||
include(":app")
|
||||
Reference in New Issue
Block a user