I have developed and released an open-source Java library under Apache 2.0 license. In the next version, I plan to include BerkeleyDB as one of the supported storage engines. Note that the actual BerkeleyDB source and binaries will not be included in my release. I use a Maven structure, so BerkeleyDB will be declaired as one of the dependencies.
Unfortunately BerkeleyDB is licensed under AGPLv3 and as far as I know it is not compatible with Apache 2. My question is does this affect the license of my software? I want to continue allowing the users to use my lib in commercial applications. Does adding BerkeleyDB support effectively forces them to open-source their projects IF they use my library?