sbt/core/src
Roberto Tyley fdb519b9e2 Avoid repeating versions in Eviction warning message
As with https://github.com/sbt/librarymanagement/pull/386, which dealt
with Eviction *errors*, this fixes the way Eviction *warnings* report
the list of evicted versions - removing duplicate versions - and does a
refactor so that both `EvictionError` & `EvictionWarning` are using the
same logic to generate the revision string.

The logic for the revisions string is moved to the new field
`EvictionPair.evictedRevs`.

Without this fix, we see Eviction warnings like this:

```
* org.scala-lang.modules:scala-java8-compat_2.13:1.0.2 is selected over {1.0.0, 1.0.0}
```
2023-09-16 13:09:07 +01:00
..
main Avoid repeating versions in Eviction warning message 2023-09-16 13:09:07 +01:00
test/scala Merge pull request #418 from xuwei-k/java-net-URL 2023-06-25 14:08:22 -04:00