开发者

Is it customary to check lib_managed into source control for sbt?

开发者 https://www.devze.com 2023-01-29 16:28 出处:网络
For Scala projects built with Simple Build Tool (sbt) do you normally check li开发者_如何学运维b_managed into source control or do you ignore it and run sbt update?I think a good rule of thumb is to c

For Scala projects built with Simple Build Tool (sbt) do you normally check li开发者_如何学运维b_managed into source control or do you ignore it and run sbt update?


I think a good rule of thumb is to commit the lib folder but not the lib_managed folder. I think that if sbt generates it or pulls it in it's best to leave it out in most cases. One concern with this is that you are dependent on external repositories which may be unavailable at times. A protection around this is to self host the dependencies (SBT Resolvers). All projects that use a common library can point to this common location.


I think checking in lib_managed is contrary to the purpose of using managed artifacts from the internet. Since the sbt project file manages the version, you won't have the problem of needing to manually update the jars. However, checking in the jars will still bloat the repo. The sbt documentation specifically recommends adding lib_managed to your .gitignore.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号