Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move PathKeyFileStore to `:resources`

+review REVIEW-6562

  1. … 16 more files in changeset.
Move FileHasher to base-services

+review REVIEW-6562

  1. … 73 more files in changeset.
Consolidated ExternalResourceUriResolver and ExternalResourceRepositoryAccessor

- ExternalResourceAccessor takes care of downloading and caching URI resources

- Only cache HTTP and HTTPS URI resources

- Use a shared FileStore<String>

  1. … 13 more files in changeset.
Wrap downloaded URI resource

- Use a wrapper for downloaded URI resource so that it appears

to have been read directly.

- Preserve the content type for the downloaded URI

    • -8
    • +12
    ./org/gradle/internal/resource/UriTextResource.java
  1. … 1 more file in changeset.
Introduce TextResourceLoader service

- Can create a TextResource for File or URI

- Used when loading files for `apply from:`

    • -0
    • +26
    ./org/gradle/internal/resource/TextResourceLoader.java
  1. … 21 more files in changeset.
Use EmptyFileTextResource directly in place of NonExistentFileScriptSource

  1. … 7 more files in changeset.
Revert "Reverted changes from PR#1900"

This reverts commit 3769869c339a2d4b753f92617641055adb3e4b16.

  1. … 12 more files in changeset.
Replace usages of org.gradle.api.Nullable

With javax.annotation.Nullable.

  1. … 446 more files in changeset.
Require that all rich build operations have result objects.

Later changing from no result to having a result is awkward for listeners to deal with.

So, always use a result type and just have it be empty if there is nothing to convey right now.

There always might be something to convey in the future.

  1. … 11 more files in changeset.
Fix Javadoc for ExternalResourceWriteBuildOperationType.

Merged the file resource implementation for the public `Resource` API into the file resource implementation for `ExternalResource` used by dependency resolution and publishing. This is a small step towards merging and reusing all the various resource implementations.

    • -0
    • +34
    ./org/gradle/internal/resource/LocalBinaryResource.java
  1. … 24 more files in changeset.
Renamed a class.

    • -0
    • +30
    ./org/gradle/internal/resource/ReadableContent.java
  1. … 13 more files in changeset.
Shuffled some methods around in the `ExternalResource` hierarchy.

  1. … 3 more files in changeset.
Moved a class to break a package cycle.

  1. … 3 more files in changeset.
Moved `FileResourceConnector` from 'dependencyManagement' to 'resources' project.

    • -0
    • +63
    ./org/gradle/internal/resource/local/FileResourceConnector.java
  1. … 10 more files in changeset.
Detangled the `ExternalResource` implementation that represents a local resource, from the implement that represents a local copy of a remote resource.

  1. … 6 more files in changeset.
Added `FileResourceRepository` as a global service for creating various file backed `ExternalResource` implementations. Use this in various places instead of creating these implementations directly.

    • -0
    • +42
    ./org/gradle/internal/resource/local/FileResourceRepository.java
  1. … 41 more files in changeset.
Javadocs.

Moved `ExternalResourceRepository` from 'dependencyManagement' to 'resources' project.

    • -0
    • +42
    ./org/gradle/internal/resource/ExternalResourceRepository.java
  1. … 20 more files in changeset.
Moved `LazyExternalResource` from 'dependencyManagement' to 'resources' project, and reused to implement `UrlExternalResource`.

  1. … 6 more files in changeset.
Include the number of bytes written in the resource write build operation result.

    • -0
    • +32
    ./org/gradle/internal/resource/ExternalResourceWriteResult.java
  1. … 3 more files in changeset.
Wrap calls to write to a resource in a build operation of type `ExternalResourceWriteBuildOperationType`. No result is attached for these build operations yet.

  1. … 1 more file in changeset.
Wrap calls to list the children of a resource during dependency resolution in a build operation of type `ExternalResourceListBuildOperationType`.

  1. … 2 more files in changeset.
Wrap calls to get the meta-data of a resource during dependency resolution in a build operation of type `ExternalResourceReadMetadataBuildOperationType`.

  1. … 2 more files in changeset.
Revert to ungrouped plain output

Only the stderr output event listener is getting the

EndOutputEvent which caused JVMs to be left open (as evidenced

by the failure of ToolingApiIntegrationTest).

Continue use of ungrouped ProgressLogEventGenerator and find a

better way to do this in a future version of Gradle.

    • -0
    • +194
    ./org/gradle/internal/resource/DownloadBuildOperationFiringExternalResourceDecorator.java
  1. … 10 more files in changeset.
Moved a class to remove package cycle.

    • -0
    • +30
    ./org/gradle/internal/resource/LocalResource.java
  1. … 13 more files in changeset.
Moved `put()` and `list()` from `ExternalResourceRepository` to `ExternalResource`.

  1. … 16 more files in changeset.
Replaced `ExternalResourceRepository.getResourceMetaData()` with `ExternalResource.getMetaData()`.

Also changed the file backed implementation of `ExternalResource` to use `FileSystem.stat()` to calculate the file meta-data, rather than using the `File` API.

  1. … 47 more files in changeset.
Rework “network” build operations to model resource operations instead.

  1. … 4 more files in changeset.
Rename network request build operation and drop unused attributes.

    • -0
    • +237
    ./org/gradle/internal/resource/BuildOperationFiringExternalResourceDecorator.java
  1. … 4 more files in changeset.