Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extract anonymous classes to static inner classes

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

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

  1. … 166 more files in changeset.
Organize imports

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

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

  1. … 693 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 900 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 900 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 888 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 895 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 900 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 900 more files in changeset.
Add missing @Override to all modules

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 997 more files in changeset.
Add missing @Override to all modules

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 991 more files in changeset.
Deprecate download of resources over HTTP; Require opt-in

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 49 more files in changeset.
Make script source hashing faster

Do not calcualte the hash for the same script multiple times.

The hash is now stored in the text resource itself so we don't need

an externall managed cache. The UriTextResource implementation has

been thoroughly optimized for local file URIs. Previously reading

those in was a major bottleneck due to copying every byte into 4(!)

different buffers.

Adding the HashCode to the TextResource made me aware of the fact

that the tooling API depended on these interfaces, although it should

never be reading scripts. It turns out that the script was attached to

the BuildLayout, where it didn't really belong. It is now only created

once the build is running and we are actually trying to load the settings

file. There were a few changes to types marked with @UsedByScanPlugin.

These were all checked against the scan plugin code base to ensure they

are safe. The reported data is now more accurate as it returns a `null`

value for a non-existing settings file instead of reporting a dummy path.

    • -22
    • +72
    ./org/gradle/internal/resource/UriTextResource.java
  1. … 19 more files in changeset.
Correct Javadoc of SingleDepthFileAccessTracker

De-incubate 3.x package-info files

And files we missed due to moving things to coreApi.

  1. … 32 more files in changeset.
De-incubate 2.x authentication API

  1. … 4 more files in changeset.
Use Files.setLastModifiedTime to touch files

While, `File.setLastModified` always uses `utimes` on Unix,

`Files.setLastModifiedTime` uses `futimes`, if available, which seems to

be able to set the timestamp for writable files owned by another user.

Resolves #6971.

  1. … 1 more file in changeset.
Use Files.setLastModifiedTime to touch files

While, `File.setLastModified` always uses `utimes` on Unix,

`Files.setLastModifiedTime` uses `futimes`, if available, which seems to

be able to set the timestamp for writable files owned by another user.

Resolves #6971.

  1. … 1 more file in changeset.
Avoid the creation of a string to build the path in the file store

This creates a significant amount of garbage. Assuming we read from the store

more often than we write to, this commit builds an array corresponding to the

path in the store, rather than a string.

  1. … 3 more files in changeset.
Remove suppressed warnings for Java 7 features

Now that we use Java 7 source level, we no longer have to suppress

warnings for using Java 7 APIs in IDEA.

  1. … 27 more files in changeset.
Separate fingerprints and snapshots (#5927)

This de-tangles FileContentSnapshot (and removes it) from NormalizedFileSnapshots.

Also it makes clear that only PhysicalSnapshots can be used to check if a file changed the timestamp.

  1. … 87 more files in changeset.
Add convenience method to track access to single file

  1. … 7 more files in changeset.
Delete access times for deleted files from journal

When a file is deleted by the LeastRecentlyUsedCacheCleanup action, the

corresponding entry is now removed from the used FileAccessTimeJournal

in order to avoid storing obsolete entries that would never get removed.

  1. … 6 more files in changeset.
Track file access in AbstractCachedIndex

Instead of tracking access in DefaultCacheAwareExternalResourceAccessor

and CachingModuleComponentRepository this is now done in

AbstractCachedIndex which ensures it's done always when reading from

indexes of CachedItems and only does so when not already present in an

in-memory cache from a previous lookup.

  1. … 39 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. … 5 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.

    • -0
    • +20
    ./org/gradle/internal/resource/local/FileAccessTimeJournal.java
    • -0
    • +25
    ./org/gradle/internal/resource/local/FileAccessTimeReader.java
    • -0
    • +25
    ./org/gradle/internal/resource/local/FileAccessTimeWriter.java
  1. … 25 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. … 27 more files in changeset.