Last active
September 5, 2020 06:59
-
-
Save ijo42/6b215e76269a72f37194b924ddda038e to your computer and use it in GitHub Desktop.
Sign any jar Groovy Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task signJar(dependsOn: 'jar',description: 'Let`s Sign JAR.',group: 'Build'){ | |
onlyIf { | |
project.hasProperty('keyStore') | |
} | |
doLast{ | |
println ":$project.name:${name}" | |
ant.signjar( | |
jar: jar.archivePath, | |
alias: project.keyStoreAlias, | |
keystore: project.keyStore, | |
storepass: project.keyStorePass, | |
tsaurl: project.tsaUrl, | |
verbose: true, | |
internalsf: true, | |
preservelastmodified: true | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment