withCaptureNestedArtifacts

Create a copy with different captureNestedArtifacts setting.