Skip to content

Commit

Permalink
Optimize google maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jun 25, 2024
1 parent c3d685f commit 1161bc6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

pluginManagement {
repositories {
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
Expand All @@ -28,8 +34,17 @@ dependencyResolutionManagement {
repositories {
maven {
setUrl("https://androidx.dev/snapshots/builds/11723120/artifacts/repository")
content {
includeGroupByRegex("androidx.*")
}
}
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
google()
mavenCentral()
}
}
Expand Down

0 comments on commit 1161bc6

Please sign in to comment.