SigningExtension

abstract class SigningExtension(source)

The global signing configuration for a project.

Constructors

Link copied to clipboard
constructor(project: Project)
Configures the signing settings for the given project.

Properties

Link copied to clipboard
The configuration that signature artifacts will be placed into.
Link copied to clipboard
The name of the configuration that all signature artifacts will be placed into ("signatures")
Link copied to clipboard
The project that the settings are for
Link copied to clipboard
The provider of signatories.
Link copied to clipboard
The provider of signature types.

Functions

Link copied to clipboard
The signatory that will be used for signing when an explicit signatory has not been specified.
Link copied to clipboard
The signature type that will be used for signing files when an explicit signature type has not been specified.
Link copied to clipboard
open fun isRequired(): Boolean
Whether this task should fail if no signatory or signature type are configured at generation time.
Link copied to clipboard
open fun setRequired(required: Boolean)
open fun setRequired(required: Any)
Whether this task should fail if no signatory or signature type are configured at generation time.
Link copied to clipboard
open fun sign(@DelegatesTo(value = SignOperation::class) closure: Closure<out Any>): SignOperation
Creates a new sign operation using the given closure to configure it before executing it.
open fun sign(files: Array<File>): SignOperation
open fun sign(classifier: String, files: Array<File>): SignOperation
Digitally signs the files, generating signature files alongside them.
Creates a new sign operation using the given action to configure it before executing it.
open fun sign(publications: DomainObjectCollection<Publication>): List<Sign>
Creates signing tasks that sign all publishable artifacts of the given publication collection.
open fun sign(tasks: Array<Task>): List<Sign>
Creates signing tasks that depend on and sign the "archive" produced by the given tasks.
open fun sign(configurations: Array<Configuration>): List<Sign>
Creates signing tasks that sign all artifacts of the given configurations.
open fun sign(publishArtifacts: Array<PublishArtifact>): SignOperation
Digitally signs the publish artifacts, generating signature files alongside them.
open fun sign(publications: Array<Publication>): List<Sign>
Creates signing tasks that sign all publishable artifacts of the given publications.
Link copied to clipboard
open fun signatories(closure: Closure<out Any>): SignatoryProvider<out Any>
Configures the signatory provider (delegating to its configure method).
Link copied to clipboard
open fun useGpgCmd()
Use GnuPG agent to perform signing work.
Link copied to clipboard
open fun useInMemoryPgpKeys(@Nullable defaultSecretKey: String, @Nullable defaultPassword: String)
open fun useInMemoryPgpKeys(@Nullable defaultKeyId: String, @Nullable defaultSecretKey: String, @Nullable defaultPassword: String)
Use the supplied ascii-armored in-memory PGP secret key and password instead of reading it from a keyring.