Spring folks agree it is a bug. See StackOverflow link for details -Dan
On Sun, Jul 24, 2016 at 11:11 AM, Dan Tran <dant...@gmail.com> wrote: > > http://stackoverflow.com/questions/38555184/json-simple-marked-as-optional-under-spring-boot-dependencies-intentional > > For my case, i override it at my BOM > > -D > > On Sun, Jul 24, 2016 at 10:44 AM, Christian Schulte <c...@schulte.it> wrote: > >> Am 07/24/16 um 19:25 schrieb Dan Tran: >> > Yes, I need to override the original import with 'optional' set to >> false. >> > At the same time, i file a bug with spring to see if it is intentional >> > >> >> This is what I would do as well. If the majority of users will never >> need that dependency and it is not needed for normal operation, optional >> is the way to go. If the majority will need to override this to false, >> they should remove optional from the BOM. I've seen optional set to true >> for runtime scope dependencies most of the time. The way it is used in >> that BOM, they could also use provided scope (compile+optional behaves >> the same way the provided scope behaves). >> >> Regards, >> -- >> Christian >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >