sbt / sbt-strict-update

1 stars 1 forks source link

how does this differ from sbt-version-policy? #1

Closed tpolecat closed 3 years ago

tpolecat commented 3 years ago

This plugin seems to do the same thing ... https://github.com/scalacenter/sbt-version-policy

eed3si9n commented 3 years ago

sbt-version-policy is mainly for the library authors to self-check that the library they are writing isn't in violation of the specified versionScheme like Semantic Versioning.

sbt-strict-update is for the app users to fail the build if their library usages break the known policies.

A closer Scala Center plugin is https://github.com/scalacenter/sbt-eviction-rules.

tpolecat commented 3 years ago

Oh, yes, sorry, https://github.com/scalacenter/sbt-eviction-rules is the one I intended to link. So many plugins!

Is there any important difference between yours and this one?

eed3si9n commented 3 years ago

Yes.

  1. sbt-eviction-rules intends to improve eviction warning, so at best it displays some warning.
  2. sbt-strict-update intends to burn eviction warning to the ground and replace it, and also fail compile task like you wanted.
tpolecat commented 3 years ago

Gotcha, thanks!