Skip to content

Commit 9cf7e19

Browse files
committed
Optimize google maven
1 parent 086acc0 commit 9cf7e19

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: settings.gradle.kts

+17-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616

1717
pluginManagement {
1818
repositories {
19-
google()
19+
google {
20+
content {
21+
includeGroupByRegex("com\\.android.*")
22+
includeGroupByRegex("com\\.google.*")
23+
includeGroupByRegex("androidx.*")
24+
}
25+
}
2026
mavenCentral()
2127
gradlePluginPortal()
2228
}
@@ -28,8 +34,17 @@ dependencyResolutionManagement {
2834
repositories {
2935
maven {
3036
setUrl("https://androidx.dev/snapshots/builds/11723120/artifacts/repository")
37+
content {
38+
includeGroupByRegex("androidx.*")
39+
}
40+
}
41+
google {
42+
content {
43+
includeGroupByRegex("com\\.android.*")
44+
includeGroupByRegex("com\\.google.*")
45+
includeGroupByRegex("androidx.*")
46+
}
3147
}
32-
google()
3348
mavenCentral()
3449
}
3550
}

0 commit comments

Comments
 (0)