Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid repeating versions in Eviction warning message #433

Merged

Commits on Sep 16, 2023

  1. Avoid repeating versions in Eviction warning message

    As with sbt#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}
    ```
    rtyley committed Sep 16, 2023
    Configuration menu
    Copy the full SHA
    fdb519b View commit details
    Browse the repository at this point in the history