英文:
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)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论