/** * Returns an array of String with the version of every dependency from a list of dependencies. * * @param dependencyList List of dependencies * @return String[] with all versions of the dependencies */ public static String[] getArrayOfVersions(List<Dependency> dependencyList) { List<String> versionList = new LinkedList<String>(); for (Dependency dependency : dependencyList) { versionList.add(dependency.getVersion()); } return versionList.toArray(new String[versionList.size()]); }