Search in sources :

Example 1 with IdentityCacheStep

use of org.gradle.internal.execution.steps.IdentityCacheStep in project gradle by gradle.

the class DependencyManagementBuildScopeServices method createExecutionEngine.

/**
 * Execution engine for usage above Gradle scope
 *
 * Currently used for running artifact transformations in buildscript blocks.
 */
ExecutionEngine createExecutionEngine(BuildOperationExecutor buildOperationExecutor, CurrentBuildOperationRef currentBuildOperationRef, ClassLoaderHierarchyHasher classLoaderHierarchyHasher, Deleter deleter, ExecutionStateChangeDetector changeDetector, InputFingerprinter inputFingerprinter, ListenerManager listenerManager, OutputSnapshotter outputSnapshotter, OverlappingOutputDetector overlappingOutputDetector, TimeoutHandler timeoutHandler, ValidateStep.ValidationWarningRecorder validationWarningRecorder, VirtualFileSystem virtualFileSystem, DocumentationRegistry documentationRegistry) {
    OutputChangeListener outputChangeListener = listenerManager.getBroadcaster(OutputChangeListener.class);
    // TODO: Figure out how to get rid of origin scope id in snapshot outputs step
    UniqueId fixedUniqueId = UniqueId.from("dhwwyv4tqrd43cbxmdsf24wquu");
    // @formatter:off
    return new DefaultExecutionEngine(documentationRegistry, new IdentifyStep<>(new IdentityCacheStep<>(new AssignWorkspaceStep<>(new LoadPreviousExecutionStateStep<>(new RemoveUntrackedExecutionStateStep<>(new CaptureStateBeforeExecutionStep<>(buildOperationExecutor, classLoaderHierarchyHasher, outputSnapshotter, overlappingOutputDetector, new ValidateStep<>(virtualFileSystem, validationWarningRecorder, new NoOpCachingStateStep<>(new ResolveChangesStep<>(changeDetector, new SkipUpToDateStep<>(new BroadcastChangingOutputsStep<>(outputChangeListener, new StoreExecutionStateStep<>(new CaptureStateAfterExecutionStep<>(buildOperationExecutor, fixedUniqueId, outputSnapshotter, new CreateOutputsStep<>(new TimeoutStep<>(timeoutHandler, currentBuildOperationRef, new ResolveInputChangesStep<>(new RemovePreviousOutputsStep<>(deleter, outputChangeListener, new ExecuteStep<>(buildOperationExecutor)))))))))))))))))));
// @formatter:on
}
Also used : SkipUpToDateStep(org.gradle.internal.execution.steps.SkipUpToDateStep) UniqueId(org.gradle.internal.id.UniqueId) ExecuteStep(org.gradle.internal.execution.steps.ExecuteStep) CreateOutputsStep(org.gradle.internal.execution.steps.CreateOutputsStep) CaptureStateBeforeExecutionStep(org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep) OutputChangeListener(org.gradle.internal.execution.OutputChangeListener) StoreExecutionStateStep(org.gradle.internal.execution.steps.StoreExecutionStateStep) DefaultExecutionEngine(org.gradle.internal.execution.impl.DefaultExecutionEngine) LoadPreviousExecutionStateStep(org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep) ResolveInputChangesStep(org.gradle.internal.execution.steps.ResolveInputChangesStep) IdentityCacheStep(org.gradle.internal.execution.steps.IdentityCacheStep)

Aggregations

OutputChangeListener (org.gradle.internal.execution.OutputChangeListener)1 DefaultExecutionEngine (org.gradle.internal.execution.impl.DefaultExecutionEngine)1 CaptureStateBeforeExecutionStep (org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep)1 CreateOutputsStep (org.gradle.internal.execution.steps.CreateOutputsStep)1 ExecuteStep (org.gradle.internal.execution.steps.ExecuteStep)1 IdentityCacheStep (org.gradle.internal.execution.steps.IdentityCacheStep)1 LoadPreviousExecutionStateStep (org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep)1 ResolveInputChangesStep (org.gradle.internal.execution.steps.ResolveInputChangesStep)1 SkipUpToDateStep (org.gradle.internal.execution.steps.SkipUpToDateStep)1 StoreExecutionStateStep (org.gradle.internal.execution.steps.StoreExecutionStateStep)1 UniqueId (org.gradle.internal.id.UniqueId)1