The SignJar task should support the "-tsadigestalg" option introduced with JDK 8u101. See http://www.oracle.com/technetwork/java/javase/8u101-relnotes-3021761.html for details. Here is an excerpt from the release notes in case the site can't be reached: "Support added to jarsigner for specifying timestamp hash algorithm A new -tsadigestalg option is added to jarsigner to specify the message digest algorithm that is used to generate the message imprint to be sent to the TSA server. In older JDK releases, the message digest algorithm used was SHA-1. If this new option is not specified, SHA-256 will be used on JDK 7 Updates and later JDK family versions. On JDK 6 Updates, SHA-1 will remain the default but a warning will be printed to the standard output stream." Also see https://bugs.openjdk.java.net/browse/JDK-8038837.
has been added with commit c11dcf2