GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

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

Aperta
#499 4 commenti 0 reazioni 1 assegnatario Rivendicata da @elharo Vedi su GitHub
best practices p3
Lingua principale
Java
Stelle
163
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.