Package co.elastic.gradle.dockerbase
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
FieldsFields 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 TypeMethodDescriptionvoidList<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>abstract org.gradle.api.provider.Property<String>protected abstract org.gradle.process.ExecOperationsorg.gradle.api.provider.Provider<String>abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.ListProperty<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.ListProperty<OsPackageRepository>protected abstract org.gradle.api.model.ObjectFactoryabstract org.gradle.api.provider.Property<OSDistribution>abstract org.gradle.api.provider.Property<URL>protected abstract org.gradle.api.file.ProjectLayoutprotected abstract org.gradle.api.provider.ProviderFactoryorg.gradle.api.internal.file.copy.DefaultCopySpecabstract org.gradle.api.file.DirectoryPropertyMethods 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
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface co.elastic.gradle.dockerbase.ImageBuildable
getArchitecture, getDockerEphemeralConfiguration, getOSPackagesConfigurationMethods 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
-
ARCHIVE_PACKAGES_NAME
- See Also:
-
-
Constructor Details
-
DockerLockfileTask
@Inject public DockerLockfileTask()
-
-
Method Details
-
getCurrentTime
-
getImageId
- Specified by:
getImageIdin interfaceImageBuildable
-
getImageIdFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageIdFile()- Specified by:
getImageIdFilein interfaceImageBuildable
-
getWorkingDirectory
@LocalState public abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()- Specified by:
getWorkingDirectoryin interfaceImageBuildable
-
getOSDistribution
- Specified by:
getOSDistributionin interfaceImageBuildable
-
getMirrorRepositories
- Specified by:
getMirrorRepositoriesin interfaceImageBuildable
-
getRootCopySpec
@Internal public org.gradle.api.internal.file.copy.DefaultCopySpec getRootCopySpec()- Specified by:
getRootCopySpecin interfaceImageBuildable
-
getDockerEphemeralMount
- Specified by:
getDockerEphemeralMountin interfaceImageBuildable
-
getJFrogCli
@InputFile @PathSensitive(NAME_ONLY) public abstract org.gradle.api.file.RegularFileProperty getJFrogCli()- Specified by:
getJFrogCliin interfaceco.elastic.gradle.cli.jfrog.JFrogCliUsingTask
-
getIsolateFromExternalRepos
- Specified by:
getIsolateFromExternalReposin interfaceImageBuildable
-
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:
getActualInstructionsin interfaceImageBuildable
-
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
- Throws:
IOException
-