Class DockerLockfileTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
co.elastic.gradle.dockerbase.DockerLockfileTask
All Implemented Interfaces:
co.elastic.gradle.cli.jfrog.JFrogCliUsingTask, ImageBuildable, Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

public abstract class DockerLockfileTask extends org.gradle.api.DefaultTask implements ImageBuildable, co.elastic.gradle.cli.jfrog.JFrogCliUsingTask
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Task

    org.gradle.api.Task.Namer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
    void
     
    List<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>
     
     
    abstract org.gradle.api.provider.Property<String>
     
    protected abstract org.gradle.process.ExecOperations
     
    org.gradle.api.provider.Provider<String>
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.provider.ListProperty<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>
     
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.provider.ListProperty<OsPackageRepository>
     
    protected abstract org.gradle.api.model.ObjectFactory
     
    abstract org.gradle.api.provider.Property<OSDistribution>
     
    abstract org.gradle.api.provider.Property<URL>
     
    protected abstract org.gradle.api.file.ProjectLayout
     
    protected abstract org.gradle.api.provider.ProviderFactory
     
    org.gradle.api.internal.file.copy.DefaultCopySpec
     
    abstract org.gradle.api.file.DirectoryProperty
     

    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

    appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.gradle.api.plugins.ExtensionAware

    getExtensions

    Methods inherited from interface co.elastic.gradle.dockerbase.ImageBuildable

    getArchitecture, getDockerEphemeralConfiguration, getOSPackagesConfiguration

    Methods inherited from interface org.gradle.api.Task

    configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
  • Field Details

  • Constructor Details

    • DockerLockfileTask

      @Inject public DockerLockfileTask()
  • Method Details

    • getCurrentTime

      @Input public Instant getCurrentTime()
    • getImageId

      @Internal public org.gradle.api.provider.Provider<String> getImageId()
      Specified by:
      getImageId in interface ImageBuildable
    • getImageIdFile

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageIdFile()
      Specified by:
      getImageIdFile in interface ImageBuildable
    • getWorkingDirectory

      @LocalState public abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()
      Specified by:
      getWorkingDirectory in interface ImageBuildable
    • getOSDistribution

      @Input public abstract org.gradle.api.provider.Property<OSDistribution> getOSDistribution()
      Specified by:
      getOSDistribution in interface ImageBuildable
    • getMirrorRepositories

      public abstract org.gradle.api.provider.ListProperty<OsPackageRepository> getMirrorRepositories()
      Specified by:
      getMirrorRepositories in interface ImageBuildable
    • getRootCopySpec

      @Internal public org.gradle.api.internal.file.copy.DefaultCopySpec getRootCopySpec()
      Specified by:
      getRootCopySpec in interface ImageBuildable
    • getDockerEphemeralMount

      @Input public abstract org.gradle.api.provider.Property<String> getDockerEphemeralMount()
      Specified by:
      getDockerEphemeralMount in interface ImageBuildable
    • getJFrogCli

      @InputFile @PathSensitive(NAME_ONLY) public abstract org.gradle.api.file.RegularFileProperty getJFrogCli()
      Specified by:
      getJFrogCli in interface co.elastic.gradle.cli.jfrog.JFrogCliUsingTask
    • getIsolateFromExternalRepos

      @Input public abstract org.gradle.api.provider.Property<Boolean> getIsolateFromExternalRepos()
      Specified by:
      getIsolateFromExternalRepos in interface ImageBuildable
    • getInputInstructions

      public abstract org.gradle.api.provider.ListProperty<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction> getInputInstructions()
    • getActualInstructions

      public List<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction> getActualInstructions()
      Specified by:
      getActualInstructions in interface ImageBuildable
    • getOsPackageRepository

      @Input public abstract org.gradle.api.provider.Property<URL> getOsPackageRepository()
    • getProviderFactory

      @Inject protected abstract org.gradle.api.provider.ProviderFactory getProviderFactory()
    • getLockFileLocation

      @Internal public abstract org.gradle.api.file.RegularFileProperty getLockFileLocation()
    • getProjectLayout

      @Inject protected abstract org.gradle.api.file.ProjectLayout getProjectLayout()
    • getExecOperations

      @Inject protected abstract org.gradle.process.ExecOperations getExecOperations()
    • getObjectFactory

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory()
    • generateLockfile

      public void generateLockfile() throws IOException
      Throws:
      IOException