Skip to content

Commit 58d8a35

Browse files
committed
Eliminates top level subprojects, allprojects gradle blocks
Which suddenly have become a gradle race (?) with version catalog init.
1 parent eae77cd commit 58d8a35

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

build.gradle.kts

-25
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ plugins {
3131

3232
shardConnectedCheckTasks(project)
3333

34-
subprojects {
35-
36-
afterEvaluate {
37-
configurations.configureEach {
38-
// There could be transitive dependencies in tests with a lower version. This could cause
39-
// problems with a newer Kotlin version that we use.
40-
resolutionStrategy.force(libs.kotlin.reflect)
41-
}
42-
}
43-
}
44-
4534
apply(from = rootProject.file(".buildscript/binary-validation.gradle"))
4635

4736
// This plugin needs to be applied to the root projects for the dokkaGfmCollector task we use to
@@ -111,20 +100,6 @@ subprojects {
111100
.configureEach { mustRunAfter(tasks.matching { it is Sign }) }
112101
}
113102

114-
allprojects {
115-
116-
configurations.all {
117-
resolutionStrategy.eachDependency {
118-
// This ensures that any time a dependency has a transitive dependency upon androidx.lifecycle,
119-
// it uses the same version as the rest of the project. This is crucial, since Androidx
120-
// libraries are never in sync and lifecycle 2.4.0 introduced api-breaking changes.
121-
if (requested.group == "androidx.lifecycle") {
122-
useVersion(libs.versions.androidx.lifecycle.get())
123-
}
124-
}
125-
}
126-
}
127-
128103
// This task is invoked by the documentation site generator script in the main workflow project (not
129104
// in this repo), which also expects the generated files to be in a specific location. Both the task
130105
// name and destination directory are defined in this script:

0 commit comments

Comments
 (0)