Package com.konfigyr.gradle
Class PublishArtifactMetadataTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.konfigyr.gradle.PublishArtifactMetadataTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="The task should always publish the latest artifact manifest")
public abstract class PublishArtifactMetadataTask
extends org.gradle.api.DefaultTask
Task that would extract the
ArtifactMetadata from the metadata directory and publish
them to the Konfigyr Artifactory.
Artifact metadata is being published to the Konfigyr Artifactory using the ArtifactUploadAction
where each metadata file is uploaded individually and the number of concurrent uploads is managed
by the WorkerExecutor.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyThe file containing the artifact metadata file locations used to generate the newManifest.abstract org.gradle.api.file.DirectoryPropertyThe directory where serializedArtifactMetadatais located.abstract org.gradle.api.provider.Property<@NonNull Duration> The initial time interval in milliseconds between consecutive polling attempts to check for a release.abstract org.gradle.api.provider.Property<@NonNull Duration> The maximum time in milliseconds to wait for a successful poll of a releaseabstract org.gradle.api.provider.Property<ArtifactoryService> Returns theArtifactoryServiceto use for publishing the artifact metadata.abstract org.gradle.workers.WorkerExecutorTheWorkerExecutorto use for executing theArtifactUploadActiontask.Methods inherited from class 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, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Constructor Details
-
PublishArtifactMetadataTask
public PublishArtifactMetadataTask()
-
-
Method Details
-
getService
Returns theArtifactoryServiceto use for publishing the artifact metadata.- Returns:
- the artifactory service to use, never null.
-
getWorkerExecutor
@Inject public abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()TheWorkerExecutorto use for executing theArtifactUploadActiontask.- Returns:
- the worker task executor, never null.
-
getArtifactManifest
@InputFile @PathSensitive(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getArtifactManifest()The file containing the artifact metadata file locations used to generate the newManifest.- Returns:
- the artifact manifest file location, never null.
-
getMetadataDirectory
@InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getMetadataDirectory()The directory where serializedArtifactMetadatais located.- Returns:
- the metadata directory, never null.
-
getReleaseTimeout
The maximum time in milliseconds to wait for a successful poll of a release- Returns:
- the release timeout, never null.
- See Also:
-
getReleasePollingInterval
@Input public abstract org.gradle.api.provider.Property<@NonNull Duration> getReleasePollingInterval()The initial time interval in milliseconds between consecutive polling attempts to check for a release.- Returns:
- the release polling interval, never null.
- See Also:
-