Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Apply `Anonymous type can be replaced with lambda` inspection the whole project

  1. … 666 more files in changeset.
Move FileAccessTimeJournal to :pineapple

  1. … 20 more files in changeset.
Use method reference, where applicable

  1. … 169 more files in changeset.
Use method reference, where applicable

  1. … 167 more files in changeset.
Replace anonymous classes with lambdas

  1. … 711 more files in changeset.
Replace anonymous classes with lambdas

  1. … 695 more files in changeset.
Remove separate interfaces for reading and writing file access time

Now that reading and writing is safe again regardless of the phase

we don't need the separate interfaces anymore.

  1. … 8 more files in changeset.
Clarify constants used by GroupedAndNamedUniqueFileStore and subclasses

  1. … 3 more files in changeset.
Write access time asynchronously, read synchronously

File access times are now written asynchronously while the cache is

being used. When it's about to be closed, they are now read

synchronously from the cleanup action because the cache access worker

has then already been stopped.

  1. … 31 more files in changeset.
Track artifact cache file access in PersistentIndexedCache

This commit introduces the `FileAccessJournal` interface and provides

two implementations:

ModificationTimeFileAccessJournal::

Reads and sets `File.lastModified()`.

IndexedCacheBackedFileAccessJournal::

Uses a PersistentIndexedCache to store the access timestamp.

The latter is now used in DefaultCacheLockingManager for the artifact

cache. All other PersistentCaches still use the former.

  1. … 30 more files in changeset.
Clean up least recently used entries in artifacts file store

The files in the artifacts file store cache are now automatically

cleaned up based on a least recently used strategy. The structure in

the cache is as follows:

- modules-2

- files-2.1

- groupId

- artifactId

- version

- hash1 (*)

- file

- hash2 (*)

- file

The cache now keeps track of files accessed inside the marked hash

directories. The cleanup action then deletes all such files that have

not been accessed in the last 30 days.

  1. … 15 more files in changeset.
Clean up least recently used entries in external resources file store

The files in the external resources file store cache are now

automatically cleaned up based on a least recently used strategy. The

structure in the cache is as follows:

- modules-2

- resources-2.1

- 0

- hash 1 (*)

- hash 2 (*)

- ...

- ...

The cache now keeps track of files accessed inside the marked hash

directories. The cleanup action then deletes all such files that have

not been accessed in the last 30 days.

  1. … 29 more files in changeset.
Some changes to caching of external resources:

- Moved the file store to live under `caches/modules-2` as the file store is protected by the lock on this directory. The external resource metadata is cached under this directory as well.

- Use a hash of the _content_ of the external resource to calculate the resource's location in the file store, so that entries never need to be overwritten. Previously a hash of the _location_ of the external resource was used. Also include the base name from the URL to allow a human to get some idea of what each file contains.

- Use custom serialization rather than Java serialization for the external resource metadata cache.

- Renamed a couple of metadata caches to better reflect their purpose.

  1. … 15 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. … 14 more files in changeset.
Revert "Reverted changes from PR#1900"

This reverts commit 3769869c339a2d4b753f92617641055adb3e4b16.

  1. … 13 more files in changeset.
Reverted changes from PR#1900

  1. … 25 more files in changeset.
Made settings.gradle apply works (and added test)

  1. … 15 more files in changeset.
Changed artifact -> file file store to use `ModuleComponentArtifactIdentifier` to refer to an artifact, consistent with the cache that holds the artifact's metadata.

    • -17
    • +15
    ./ArtifactIdentifierFileStore.java
  1. … 16 more files in changeset.
Rename `o.g.i.c.e.model.*{MetaData => Metadata}`

  1. … 113 more files in changeset.
Renamed a few dep management types to replace 'ModuleVersion' with 'ModuleComponent'

  1. … 116 more files in changeset.
Moved some meta-data types out of org.gradle.api.internal.artifacts to org.gradle.internal.component, and split up into base, local and external types.

  1. … 307 more files in changeset.
Renamed source directory from 'groovy' to 'java'

    • -0
    • +44
    ./ArtifactIdentifierFileStore.java
  1. … 815 more files in changeset.