forked from hush/SilentDragonAndroid
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
@Suppress("UnstableApiUsage")
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
val isRepoRestrictionEnabled = true
|
|
|
|
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.*")
|
|
}
|
|
}
|
|
}
|
|
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.*")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|