SBT: is it wise to fix eviction warnings of library dependencies

前端 未结 1 682
有刺的猬
有刺的猬 2021-01-01 10:41

Is it a good idea to fix SBT eviction warning messages?

By overriding the version of the evicted libraries to the latest. Would that force SBT to stick with the over

1条回答
  •  被撕碎了的回忆
    2021-01-01 10:45

    If these warnings are for dependencies you use directly in your code, you should definitely add the upgraded version to your libraryDependencies.

    For evicted transitive dependencies (those dependencies only used directly by your own dependencies), it's likely best to simply leave the warnings in place. This provides documentation to you about possible incompatibilities in your dependencies, and could help you debug runtime problems that arise due to such incompatibilities.

    Remember, setting dependencyOverrides merely hides the warning, it doesn't guarantee compatibility between your libraries and the version you set.

    0 讨论(0)
提交回复
热议问题