Skip to content

Commit

Permalink
First conflict report
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Oct 30, 2018
1 parent 37585d2 commit 5eb3ebe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/kotlin/net/squarelabs/depends/ResolverTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ class ResolverTest {
fun `resolver should resolve`() {
val state = State()
val root: Artifact = resolve("io.dropwizard:dropwizard-core:1.3.7", state)
println("artifactsByGa=${state.artifactsByGa.size}")
val conflicts = state.artifactsByGa.keys
.filter { key -> state.artifactsByGa[key]!!.size > 1 }
.map { key -> key + ": " + state.artifactsByGa[key]!!.keys.joinToString() }
.joinToString("\n")
println("unique artifacts: ${state.artifactsByGa.size}")
println("conflicts: $conflicts")
}
}

0 comments on commit 5eb3ebe

Please sign in to comment.