-sign PARAMETERS
Project
-
Example:
-sign=alias -
Values:
<alias> [ ';' 'password:=' <password> ] [ ';'* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )* -
Pattern:
.*
-sign
The -sign instruction is used to sign the generated JAR file with a specified certificate or keystore. This is important for distributing secure and trusted bundles, especially in environments that require signed artifacts.
Example:
-sign: mykeystore;alias=myalias
This instruction ensures that the output JAR is cryptographically signed as part of the build process.
A more detailed example using additional properties:
-sign: mykeystore;alias=myalias;storepass=secret;keypass=secret;keystore=path/to/keystore.jks;digestalg=SHA-256
In this example:
mykeystoreis the name of the keystore.aliasspecifies the certificate alias to use for signing.storepassandkeypassprovide the passwords for the keystore and key.keystoregives the path to the keystore file.digestalgsets the digest algorithm (e.g., SHA-256) for the signature.
These options allow you to fully control the signing process and meet the requirements of your deployment environment.
TODO Needs review - AI Generated content
