You need to sign up with Jarsigner. But Jarsigner is actually a little more flexible than you think. If you already have a signature key that you want to use, you can export it from gpg and import it into the Java keystore, and then sign it. If you want to try to do this, you can try keytool, but it is much easier to get Keytool Explorer, because keytool has many options.
Jarsigner is actually quite flexible. This document describes the process by which you can create your own providers. I am surprised that there is no longer anyone who already uses GPG key stores. There is a way to do this with Yubikey, and this is the only reason I know all this - my signature keys are securely locked in my yubikey, where even I can’t get them (yes, I have a reliable backup somewhere)
source share