32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
@Suppress("UnstableApiUsage")
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
val isRepoRestrictionEnabled = true
|
|
|
|
maven("https://dl.google.com/dl/android/maven2/") { //google()
|
|
if (isRepoRestrictionEnabled) {
|
|
content {
|
|
includeGroup("androidx.navigation")
|
|
includeGroup("com.android.tools")
|
|
includeGroup("com.google.testing.platform")
|
|
includeGroupByRegex("androidx.*")
|
|
includeGroupByRegex("com\\.android.*")
|
|
includeGroupByRegex("com\\.android\\.tools.*")
|
|
}
|
|
}
|
|
}
|
|
maven("https://repo.maven.apache.org/maven2/") { // mavenCentral()
|
|
if (isRepoRestrictionEnabled) {
|
|
content {
|
|
excludeGroup("androidx.navigation")
|
|
excludeGroup("com.android.tools")
|
|
excludeGroup("com.google.testing.platform")
|
|
excludeGroupByRegex("androidx.*")
|
|
excludeGroupByRegex("com\\.android.*")
|
|
excludeGroupByRegex("com\\.android\\.tools.*")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|