I've encountered similar problem and would love to learn whether we can include external jars into unit runtime.
I understand it might not meet your needs, but I managed to workaround this by including a shadow class that provided all the necessary methods, like so:
```
@Language("JAVA")
String provides = "package dagger; public @interface Provides {}";
```