Restrict Google maven repository scope in settings.gradle.kts

This commit is contained in:
Oscar Mira 2025-02-18 12:41:30 +01:00
parent 281badd840
commit 1482aaec08
No known key found for this signature in database
GPG key ID: B371B98C5DC32237

View file

@ -9,7 +9,13 @@ pluginManagement {
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
google() google {
content {
includeGroupByRegex("com\\.android(\\..*)?")
includeGroupByRegex("com\\.google(\\..*)?")
includeGroupByRegex("androidx?(\\..*)?")
}
}
mavenCentral() mavenCentral()
mavenLocal { mavenLocal {
content { content {