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 摘要。