Skip to content

Commit fbe107f

Browse files
Filtering
1 parent bf13c1e commit fbe107f

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)