How to add a custom jar in a Jira Plugin?

Sounds like you’re writing a library which would also be useful over here: Looking for bridge API lib for compatibility jira-api version 7.x and 8.x, similar to jira-cross-compatibility-lib-bridge-api

How do you inject the JiraCompatibility into your app. It’s likely that you’re doing something wrong with the dependency injection. The OSGi exeception indicates, that the dependency injection is looking for an exported instance of JiraCompatibility. But you’re using scope compile for the dependency, so a simple instantiation of the required class should be sufficient.