Testcontainers的阴影依赖

huangapple go评论53阅读模式
英文:

Testcontainers' shaded dependencies

问题

Testcontainers捆绑了一些有用的依赖项,否则我将明确将它们添加到我的pom.xml中。它们被标记为"shaded",例如org.testcontainers.shaded.org.awaitility.Awaitility.await

最佳实践是使用这些"shaded"依赖项,还是应该将它们明确添加到我的pom.xml中?

英文:

Testcontainers bundles several dependencies that are useful and that I would otherwise add to my pom.xml explicitly. They are labeled as "shaded", like e.g. org.testcontainers.shaded.org.awaitility.Awaitility.await.

Is it best practice to use these "shaded" dependencies or should I rather add them explicitly to my pom.xml?

答案1

得分: 2

总的来说,您不应该使用库的阴影依赖项(特别是对于Testcontainers而言也是如此),因为我认为它们不属于公共API的一部分,可能会发生变化。

(免责声明:我是Testcontainers的维护者之一)

英文:

In general, you should not use the shaded dependencies of a library (this is also the case for Testcontainers in particular), since I'd say they are not part of the public API and might be subject to change.

(Disclaimer: I am a TC maintainer)

huangapple
  • 本文由 发表于 2023年8月10日 16:53:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76874119.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定