GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

New JLBP - Libraries should not expose unnecessary implementations in dependency tree.

未关闭
#499 4 条评论 0 个 reaction 已指派 1 人 已被 @elharo 认领 在 GitHub 查看
best practices p3
主要语言
Java
星标
163
派生
80
PR 合并指标
30 天内没有已合并 PR

描述

Libraries should use API interfaces as much as possible. In terms of logging, depend on Logging API interfaces (e.g., slf4j). However, in order for slf4j to print out the log somewhere, it requires a binding (e.g., slf4j-log4j). The binding (implementation) should not be exposed to library consumer via transitive dependency. Bindings/implementations such as this should be set as `optional` so that it doesn't expose to the user depending on this library.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。