/** * Get the dependency list from the application configuration file. * @param config * @return */ static public List<Dependency> applicationDependencies(Config config) { List<String> ds = config.valueList(Config.KEY_DEPENDENCIES).getOrNull(); if (ds == null || ds.isEmpty()) { return null; } List<Dependency> dependencies = new ArrayList<>(ds.size()); ds.stream().forEach((d) -> { dependencies.add(Dependency.parse(d)); }); return dependencies; }
/** * Get the dependency list from the application configuration file. * @param config * @return */ static public List<Dependency> applicationDependencies(Config config) { List<String> ds = config.valueList(Config.KEY_DEPENDENCIES).getOrNull(); if (ds == null || ds.isEmpty()) { return null; } List<Dependency> dependencies = new ArrayList<>(ds.size()); ds.stream().forEach((d) -> { dependencies.add(Dependency.parse(d)); }); return dependencies; }