1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-02-28 11:40:56 -08:00
parent b06ce2628f
commit c236b0b070

View file

@ -80,7 +80,7 @@ public class DependencyManager @Inject constructor(val executors: KobaltExecutor
* Reorder dependencies so that if an artifact appears several times, only the one with the higest version * Reorder dependencies so that if an artifact appears several times, only the one with the higest version
* is included. * is included.
*/ */
public fun reorderDependencies(dependencies: Collection<IClasspathDependency>): List<IClasspathDependency> { fun reorderDependencies(dependencies: Collection<IClasspathDependency>): List<IClasspathDependency> {
val result = arrayListOf<IClasspathDependency>() val result = arrayListOf<IClasspathDependency>()
val map : ArrayListMultimap<String, IClasspathDependency> = ArrayListMultimap.create() val map : ArrayListMultimap<String, IClasspathDependency> = ArrayListMultimap.create()
// The multilist maps each artifact to a list of all the versions found // The multilist maps each artifact to a list of all the versions found