@@ -235,17 +235,6 @@ class GradleProjectPlugin implements Plugin<Project> {
235
235
]
236
236
]
237
237
238
- // List containing all child entries of MODULE_DEPENDENCY_MINIMUMS
239
- static Map<String , Boolean > MODULES_MINIMUMS_TO_TRACK
240
- static void generateMinModulesToTrackStatic () {
241
- MODULES_MINIMUMS_TO_TRACK = [:]
242
- MODULE_DEPENDENCY_MINIMUMS . each { parentModule , parentVersion ->
243
- parentVersion. each { childModule , _childVersion ->
244
- MODULES_MINIMUMS_TO_TRACK [childModule] = true
245
- }
246
- }
247
- }
248
-
249
238
static Map<String , Object > versionModuleAligns
250
239
251
240
static def versionGroupAligns
@@ -281,8 +270,6 @@ class GradleProjectPlugin implements Plugin<Project> {
281
270
shownWarnings = [:]
282
271
versionModuleAligns = [:]
283
272
284
- generateMinModulesToTrackStatic()
285
-
286
273
disableGMSVersionChecks()
287
274
detectProjectState()
288
275
@@ -828,21 +815,7 @@ class GradleProjectPlugin implements Plugin<Project> {
828
815
static void updateVersionModuleAligns (String group , String module , String version ) {
829
816
def inputModule = " $group :$module "
830
817
831
- // 1. Sets or updates versionModuleAligns of modules we need to enforce min versions on
832
- if (MODULES_MINIMUMS_TO_TRACK [inputModule]) {
833
- def curOverrideVersion = versionModuleAligns[inputModule]
834
- if (curOverrideVersion) {
835
- curOverrideVersion[' version' ] =
836
- acceptedOrIntersectVersion(
837
- version,
838
- curOverrideVersion[' version' ] as String
839
- )
840
- }
841
- else
842
- versionModuleAligns[inputModule] = [version : version]
843
- }
844
-
845
- // 2. When we get a dependent version value parent's to a min version if needed
818
+ // When we get a dependent version value parent's to a min version if needed
846
819
def rule = MODULE_DEPENDENCY_MINIMUMS [inputModule]
847
820
rule. each { parentVersion , dependentChildMinVersion ->
848
821
def exactVersion = new ExactVersionSelector (parentVersion)
0 commit comments