sbt/core
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
..
src Avoid repeating versions in Eviction warning message 2023-09-16 13:09:07 +01:00
NOTICE Library management API 2017-07-15 11:17:23 -04:00