Optimise repositories declarations (#4113)

This commit is contained in:
Goooler 2023-11-23 16:41:46 +08:00 committed by GitHub
parent 2d663d8966
commit 1313371051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,11 @@
pluginManagement { pluginManagement {
repositories { repositories {
google() google {
content {
includeGroupByRegex(".*google.*")
includeGroupByRegex(".*android.*")
}
}
gradlePluginPortal() gradlePluginPortal()
} }
} }
@ -8,7 +13,12 @@ pluginManagement {
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
google() google {
content {
includeGroupByRegex(".*google.*")
includeGroupByRegex(".*android.*")
}
}
mavenCentral() mavenCentral()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
} }