Clone
 

cedric champeau <cedric@gradle.com> in Gradle

Fix incorrect Gradle root build directory location

This would cause a couple of bugs:

- a `gradle` directory would be created for each build even if

they didn't have one

- a `gradle` directory would be created for subprojects if the

gradle command was executed from this directory (#11971)

In addition, this would cause the verification metadata file to be

ignored if running from a subproject directory.

Fix incorrect Gradle root build directory location

This would cause a couple of bugs:

- a `gradle` directory would be created for each build even if

they didn't have one

- a `gradle` directory would be created for subprojects if the

gradle command was executed from this directory (#11971)

In addition, this would cause the verification metadata file to be

ignored if running from a subproject directory.

Fix incorrect Gradle root build directory location

This would cause a couple of bugs:

- a `gradle` directory would be created for each build even if

they didn't have one

- a `gradle` directory would be created for subprojects if the

gradle command was executed from this directory (#11971)

In addition, this would cause the verification metadata file to be

ignored if running from a subproject directory.

Do not read the full file in-memory when computing checksums

Do not read the full file in-memory when computing checksums

Do not read the full file in-memory when computing checksums

Do not read the full file in-memory when computing checksums

Fix read-only cache not being properly closed

Signed-off-by: Cédric Champeau <cedric@gradle.com>

Fix read-only cache not being properly closed

Fix read-only cache not being properly closed

Fix read-only cache for dynamic version listing

Add more test coverage for read-only dependency cache

Fix test flakiness

Sometimes the `.sha1` for module files wasn't fetched because the

HTTP test fixture server would report a `LastModified` timestamp

unchanged even if the underlying file did. That's because we're

just relying on the file last modified timestamp which unfortunately

isn't reliable.

Fix test flakiness

Sometimes the `.sha1` for module files wasn't fetched because the

HTTP test fixture server would report a `LastModified` timestamp

unchanged even if the underlying file did. That's because we're

just relying on the file last modified timestamp which unfortunately

isn't reliable.

Change way cache is made read-only in test fixtures

Change way cache is made read-only in test fixtures

Change way cache is made read-only in test fixtures

Change way cache is made read-only in test fixtures

Change way cache is made read-only in test fixtures

Change way cache is made read-only in test fixtures

Make checkstyle happy

Make checkstyle happy

Add tests for read-only dependency cache

Add tests for read-only dependency cache

Add tests for read-only dependency cache

Add tests for read-only dependency cache

Add first batch of tests

Add tests for read-only dependency cache

Add tests for read-only dependency cache

Avoid eager creation of the file access journal