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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.file.RegularFileProperty
    The file containing the artifact metadata file locations used to generate the new Manifest.
    abstract org.gradle.api.file.DirectoryProperty
    The directory where serialized ArtifactMetadata is 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 release
    abstract org.gradle.api.provider.Property<ArtifactoryService>
    Returns the ArtifactoryService to use for publishing the artifact metadata.
    abstract org.gradle.workers.WorkerExecutor
    The WorkerExecutor to use for executing the ArtifactUploadAction task.

    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, usesService

    Methods 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, notCompatibleWithConfigurationCache
  • Constructor Details

    • PublishArtifactMetadataTask

      public PublishArtifactMetadataTask()
  • Method Details

    • getService

      @Internal public abstract org.gradle.api.provider.Property<ArtifactoryService> getService()
      Returns the ArtifactoryService to use for publishing the artifact metadata.
      Returns:
      the artifactory service to use, never null.
    • getWorkerExecutor

      @Inject public abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()
      The WorkerExecutor to use for executing the ArtifactUploadAction task.
      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 new Manifest.
      Returns:
      the artifact manifest file location, never null.
    • getMetadataDirectory

      @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getMetadataDirectory()
      The directory where serialized ArtifactMetadata is located.
      Returns:
      the metadata directory, never null.
    • getReleaseTimeout

      @Input public abstract org.gradle.api.provider.Property<@NonNull Duration> 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: