I need to Sign the jar file. I did that applying plugin "signing" and add block sign like below:
apply plugin: 'signing'
signing {
required { gradle.taskGraph.hasTask("makeService") }
sign configurations.archives
}
At the end I am able to add PGP keys and sign the jar but it is signed outside jar file with .asc (testJar.jar.asc).
But I did this in maven , it signs all class info and place the sign files in meta-inf directory.
Is there anyway to sign like that in Gradle ?
Please help I tried googling and forums not able to gain any info.