Package org.gradle.plugins.signing
Klasse Sign
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.plugins.signing.Sign
- Alle implementierten Schnittstellen:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,SignatureSpec,Configurable<Task>
@DisableCachingByDefault(because="Not made cacheable, yet")
public abstract class Sign
extends DefaultTask
implements SignatureSpec
A task for creating digital signature files for one or more; tasks, files, publishable artifacts or configurations.
The task produces Signature
The signature objects are created with defaults and using this tasks signatory and signature type.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Task
Task.Namer -
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidgenerate()Generates the signature files.protected org.gradle.api.internal.CollectionCallbackActionDecoratorRequired for decorating reports container callbacks for tracing user code application.protected org.gradle.api.internal.file.FileCollectionFactoryAll of the files that will be signed by this task.The signature generators for this task mapped by a unique key used for up-to-date checking.Returns the signatory for this signing task.All of the signature files that will be generated by this operation.The signatures generated by this task.The signatures generated by this task mapped by a unique key used for up-to-date checking.The signature representation that will be created.Returns the single signature generated by this task.booleanWhether or not this task should fail if no signatory or signature type are configured at generation time.voidrequired(boolean required) Change whether or not this task should fail if no signatory or signature type are configured at the time of generation.voidsetRequired(boolean required) Whether or not it is required that this signature be generated.voidsetSignatory(Signatory signatory) Sets the signatory that will be signing the input.voidsetSignatureType(SignatureType signatureType) Sets the signature representation that the signatures will be produced as.voidConfigures the task to sign each of the given filesvoidConfigures the task to sign each of the given artifacts, using the given classifier as the classifier for the resultant signature publish artifact.voidsign(Configuration... configurations) Configures the task to sign every artifact of the given configurationsvoidsign(PublishArtifact... publishArtifacts) Configures the task to sign each of the given artifactsvoidsign(Publication... publications) Configures the task to sign every artifact of the given publicationsvoidConfigures the task to sign the archive produced for each of the given tasks (which must be archive tasks).voidChanges the signatory of the signatures.Von Klasse geerbte Methoden org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceVon Klasse geerbte Methoden org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Konstruktordetails
-
Sign
@Inject public Sign()
-
-
Methodendetails
-
sign
Configures the task to sign the archive produced for each of the given tasks (which must be archive tasks). -
sign
Configures the task to sign each of the given artifacts -
sign
Configures the task to sign each of the given files -
sign
Configures the task to sign each of the given artifacts, using the given classifier as the classifier for the resultant signature publish artifact. -
sign
Configures the task to sign every artifact of the given configurations -
sign
Configures the task to sign every artifact of the given publications- Seit:
- 4.8
-
signatory
Changes the signatory of the signatures. -
required
public void required(boolean required) Change whether or not this task should fail if no signatory or signature type are configured at the time of generation. -
generate
public void generate()Generates the signature files. -
getSignatures
The signatures generated by this task. -
getGeneratorsByKey
The signature generators for this task mapped by a unique key used for up-to-date checking.- Seit:
- 8.1
-
getSignaturesByKey
The signatures generated by this task mapped by a unique key used for up-to-date checking.- Seit:
- 5.1
-
getSingleSignature
Returns the single signature generated by this task.- Gibt zurück:
- The signature.
- Löst aus:
IllegalStateException- if there is not exactly one signature.
-
getFileCollectionFactory
@Inject protected org.gradle.api.internal.file.FileCollectionFactory getFileCollectionFactory() -
getFilesToSign
All of the files that will be signed by this task. -
getSignatureFiles
All of the signature files that will be generated by this operation. -
getSignatureType
Beschreibung aus Schnittstelle kopiert:SignatureSpecThe signature representation that will be created.- Angegeben von:
getSignatureTypein SchnittstelleSignatureSpec- Gibt zurück:
- the signature type, or
nullif none specified.
-
setSignatureType
Beschreibung aus Schnittstelle kopiert:SignatureSpecSets the signature representation that the signatures will be produced as.- Angegeben von:
setSignatureTypein SchnittstelleSignatureSpec- Parameter:
signatureType- the signature type to use
-
getSignatory
Returns the signatory for this signing task.- Angegeben von:
getSignatoryin SchnittstelleSignatureSpec- Gibt zurück:
- the signatory
-
setSignatory
Beschreibung aus Schnittstelle kopiert:SignatureSpecSets the signatory that will be signing the input.- Angegeben von:
setSignatoryin SchnittstelleSignatureSpec- Parameter:
signatory- The signatory
-
isRequired
Whether or not this task should fail if no signatory or signature type are configured at generation time.Defaults to
true.- Angegeben von:
isRequiredin SchnittstelleSignatureSpec- Gibt zurück:
- Whether or not it is required that this signature be generated.
-
setRequired
public void setRequired(boolean required) Beschreibung aus Schnittstelle kopiert:SignatureSpecWhether or not it is required that this signature be generated.- Angegeben von:
setRequiredin SchnittstelleSignatureSpec- Parameter:
required- Whether or not it is required that this signature be generated.- Siehe auch:
-
getCallbackActionDecorator
@Inject protected org.gradle.api.internal.CollectionCallbackActionDecorator getCallbackActionDecorator()Required for decorating reports container callbacks for tracing user code application.- Seit:
- 5.1
-