Table of Contents
API Documentation: | Sign |
---|
A task for creating digital signature files for one or more; tasks, files, publishable artifacts or configurations.
The task produces Signature
objects that are publishable artifacts and can be assigned to another configuration.
The signature objects are created with defaults and using this tasks signatory and signature type.
Property | Description |
signatory | The signatory for this signing task. |
Method | Description |
sign(files) | Configures the task to sign each of the given files |
sign(classifier, files) | Configures the task to sign each of the given artifacts, using the given classifier as the classifier for the resultant signature publish artifact. |
sign(tasks) | Configures the task to sign the archive produced for each of the given tasks (which must be archive tasks). |
sign(configurations) | Configures the task to sign every artifact of the given configurations |
sign(publishArtifacts) | Configures the task to sign each of the given artifacts |
sign(publications) | Incubating Configures the task to sign every artifact of the given publications |
signatory(signatory) | Changes the signatory of the signatures. |
The signatory for this signing task.
Configures the task to sign each of the given files
Configures the task to sign each of the given artifacts, using the given classifier as the classifier for the resultant signature publish artifact.
void
sign
(Task
...
tasks)
Task
...Configures the task to sign the archive produced for each of the given tasks (which must be archive tasks).
void
sign
(Configuration
...
configurations)
Configuration
...Configures the task to sign every artifact of the given configurations
void
sign
(PublishArtifact
...
publishArtifacts)
PublishArtifact
...Configures the task to sign each of the given artifacts
void
sign
(Publication
...
publications)
Publication
...Note: This method is incubating and may change in a future version of Gradle.
Configures the task to sign every artifact of the given publications
Changes the signatory of the signatures.