How to sign a jar with x.509 certificates using gradle

Hi, The gradle signing plugin uses PGP certificates. Can I sign my jar file with an x.509 certificate? thanks

It only supports PGP at the moment.

A year has now passed. Has support for signing with a certificate been added to gradle?

You could use the signjar ant task https://ant.apache.org/manual/Tasks/signjar.html https://gist.github.com/Lien/7150434