void (String moduleName, String depName) { if (isGradleOlderThan("3.4") || isGradleNewerThan("4.5")) { assertModuleModuleDepScope(moduleName, depName, DependencyScope.COMPILE); } else { assertModuleModuleDepScope(moduleName, depName, DependencyScope.PROVIDED, DependencyScope.TEST, DependencyScope.RUNTIME); } }