fix(ModuleManager): loosen auto-generated dependency version
getNextPatchVersion was too narrow when the base version was a snapshot.
(That may be a gestalt-module bug, but it's an edge case and using MinorVersion here seems fine.)
@@ -94,7 +94,7 @@ private void ensureModulesDependOnEngine() {
DependencyInfo engineDep = new DependencyInfo();
engineDep.setId(engineModule.getId());
engineDep.setMinVersion(engineModule.getVersion());
- engineDep.setMaxVersion(engineModule.getVersion().getNextPatchVersion());
+ engineDep.setMaxVersion(engineModule.getVersion().getNextMinorVersion());
HashSet<Name> engineModules = Sets.newHashSet(engineModule.getId());
engineModules.addAll(engineModule.getMetadata().getDependencies().stream().map(DependencyInfo::getId).collect(Collectors.toList()));
