Skip to content

Commit 1482aae

Browse files
committed
Restrict Google maven repository scope in settings.gradle.kts
1 parent 281badd commit 1482aae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

settings.gradle.kts

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ pluginManagement {
99
dependencyResolutionManagement {
1010
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1111
repositories {
12-
google()
12+
google {
13+
content {
14+
includeGroupByRegex("com\\.android(\\..*)?")
15+
includeGroupByRegex("com\\.google(\\..*)?")
16+
includeGroupByRegex("androidx?(\\..*)?")
17+
}
18+
}
1319
mavenCentral()
1420
mavenLocal {
1521
content {

0 commit comments

Comments
 (0)