I'm working on a project with multiple subprojects and they all use a utilities library that I created for hashing, signing and encrypting messages. This library is basically a wrapper for bouncy castle.
When I run the tests associated with the library, everything passes and it's alright. When I package the utilities library into the jar two things happen:
- The subproject that is using the library cannot find the jars associated with bouncy castle.
- Even when I add the bouncy castle jars to the subproject that is using the library, the project cannot find the bouncy castle security provider "BC"
Here's the configuration of the exported utilities jar in intellij:
Security provider initialization:
Why can't I export a library with an included security provider? Is this a side effect from the generated class loader?
Thanks in advance.