Skip to content

Commit 892210c

Browse files
committed
optimize google maven downloading
1 parent a54b918 commit 892210c

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

settings.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
pluginManagement {
22
repositories {
3-
google()
3+
google {
4+
content {
5+
includeGroupByRegex("com\\.android.*")
6+
includeGroupByRegex("com\\.google.*")
7+
includeGroupByRegex("androidx.*")
8+
}
9+
}
410
mavenCentral()
511
gradlePluginPortal()
612
}
@@ -9,7 +15,13 @@ pluginManagement {
915
dependencyResolutionManagement {
1016
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1117
repositories {
12-
google()
18+
google {
19+
content {
20+
includeGroupByRegex("com\\.android.*")
21+
includeGroupByRegex("com\\.google.*")
22+
includeGroupByRegex("androidx.*")
23+
}
24+
}
1325
mavenCentral()
1426
}
1527
}

0 commit comments

Comments
 (0)