Skip to content

Commit dda0f19

Browse files
Filtering (#282)
## Description <!--- Describe your changes in detail --> ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> ## Checklist <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have mentioned changes in [CHANGELOG.md](../CHANGELOG.md). - [ ] I have read the [**CONTRIBUTING**](CONTRIBUTING.md) document. ## PR Stack <!-- branch-stack --> - `main` - \#282 :point\_left:
1 parent 8f1eb13 commit dda0f19

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

build-logic/settings.gradle.kts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,30 @@ rootProject.name = "build-logic"
77

88
pluginManagement {
99
repositories {
10+
exclusiveContent {
11+
forRepository { google() }
12+
filter {
13+
includeGroupAndSubgroups("androidx")
14+
includeGroupAndSubgroups("com.android")
15+
includeGroup("com.google.testing.platform")
16+
}
17+
}
1018
mavenCentral()
11-
google()
1219
gradlePluginPortal()
1320
}
1421
}
1522

1623
dependencyResolutionManagement {
1724
repositories {
25+
exclusiveContent {
26+
forRepository { google() }
27+
filter {
28+
includeGroupAndSubgroups("androidx")
29+
includeGroupAndSubgroups("com.android")
30+
includeGroup("com.google.testing.platform")
31+
}
32+
}
1833
mavenCentral()
19-
google()
2034
}
2135

2236
versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }

settings.gradle.kts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,31 @@ rootProject.name = "dagger-rules"
88
pluginManagement {
99
includeBuild("build-logic")
1010
repositories {
11+
exclusiveContent {
12+
forRepository { google() }
13+
filter {
14+
includeGroupAndSubgroups("androidx")
15+
includeGroupAndSubgroups("com.android")
16+
includeGroup("com.google.testing.platform")
17+
}
18+
}
1119
mavenCentral()
12-
google()
1320
gradlePluginPortal()
1421
}
1522
}
1623

1724
dependencyResolutionManagement {
1825
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1926
repositories {
27+
exclusiveContent {
28+
forRepository { google() }
29+
filter {
30+
includeGroupAndSubgroups("androidx")
31+
includeGroupAndSubgroups("com.android")
32+
includeGroup("com.google.testing.platform")
33+
}
34+
}
2035
mavenCentral()
21-
google()
2236
}
2337
}
2438

0 commit comments

Comments
 (0)