Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Build question about JGit

On Mon, Mar 4, 2024 at 7:24 PM yi wei via jgit-dev <jgit-dev@xxxxxxxxxxx> wrote:
Hello,

I'm trying to make some experimental fixes regarding issue https://github.com/eclipse-jgit/jgit/issues/33 and confused about how JGit core is consuming those other features in the repo gpg.bc. 

Our project has a direct dependency on JGit and JGit.apache.ssh features. It looks like JGit will load the class BouncyCastleGpgSigner, which is implemented under gpg.bc, in its service loader at runtime. My plan is to patch BouncyCastleGpgSigner class to create a memoized BCProvider, rather than registering one into the application as additional JSP. However, after I made the change and built the JGit core jars, I didn't see my changes are picked up. So I'm confused on how the gpg.bc feature is declared as a dependency for JGit module and how I can tweak it and use my local patched version. 

The org.eclipse.jgit library does not depend on the org.eclipse.jgit.gpg.bc library. If you want to use it your application
needs to add it as an additional dependency. If it is on the application's classpath GPGSigner will try to load it
dynamically using a ServiceLoader.

 
Thanks for your help!
With kind regards,
Yi Wei


_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jgit-dev

Back to the top