I would say yes. My reasoning: BOM is bill of materials, ANY materials potentially needed for a library.
Otoh, optional dependencies have to be explicitly listed by consumers (POM consuming your library). Hence, you will help your consumer by giving them predefined version to use, IF they enlist the optional dependency. Thanks T On Sat, Jun 17, 2023, 21:32 Ceki Gülcü <c...@qos.ch.invalid> wrote: > > Hello, > > Is it considered good practice to reference optional dependencies in BOM > files? > > -- > Ceki Gülcü > > Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >