sbt/Scala 是否有类似于 Bundler/pip >= 或 ~= 的 "compatible release"?

Does sbt/Scala have a "compatible release" similar to Bundler/pip >= or ~=?

我习惯使用 ~=>= 让包管理器升级到最新的兼容版本。

sbt 或 Scala 有类似的东西吗?我在他们的文档中找不到它:https://www.scala-sbt.org/1.x/docs/Library-Management.html

等效的捆绑器:https://bundler.io/gemfile.html
点当量:https://pip.pypa.io/en/stable/reference/requirements-file-format/#example

感谢您的宝贵时间

我只想在评论中总结一下对话:

有一个方法可以做到:https://ant.apache.org/ivy/history/2.3.0/ivyfile/dependency.html#revision

语法是:

Examples:
[1.0,2.0] matches all versions greater or equal to 1.0 and lower or equal to 2.0
[1.0,2.0[ matches all versions greater or equal to 1.0 and lower than 2.0
]1.0,2.0] matches all versions greater than 1.0 and lower or equal to 2.0
]1.0,2.0[ matches all versions greater than 1.0 and lower than 2.0
[1.0,) matches all versions greater or equal to 1.0
]1.0,) matches all versions greater than 1.0
(,2.0] matches all versions lower or equal to 2.0
(,2.0[ matches all versions lower than 2.0

不推荐,还有其他工具可以帮助解决依赖关系。

即使我对 Scala/Java 世界进行了极其简短的探索,许多依赖关系往往会被破坏,并且向后兼容性似乎比我在 Python 和 Ruby。甚至文档似乎也会导致依赖关系中断。为什么这些版本范围通常不在 Scala/Java 世界中使用是有道理的。这也很可能是因为我在 Scala/Java.

方面缺乏经验

希望对你有帮助