Gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move the functional tests for concurrent usage of build services into a separate test class, and fix for instant execution.

Merge branch 'release'

Publish 6.0.1-20191113170641+0000

Restrict base version for cross version test

So it doesn't try to run on pre 5.x versions. PathSensitivity has been

introduced in 3.1, though it doesn't make much sense to run the test

pre 5.0.

#11330

Merge pull request #11344 from gradle/lacasseio/samples/use-real-title

Use real sample title to improve GitHub rendering

Merge pull request #11339 from gradle/lacasseio/samples/spring-boot

Add Spring Boot application sample

Merge pull request #11347 from gradle/bamboo/release/11335/i

Preserve behaviour of `fileTree(mapOf(...))` for backward compatibility

Merge pull request #11331 from gradle/wolfs/java-compile/fix-android

Fix AndroidJavaCompile not detecting incremental changes

Add 5.6.4 to released versions

Merge branch 'release'

Accept breaking change

The breaking change actually fixes the problem.

Merge branch 'release'

Prepare for 6.0.1

Polish `DefaultKotlinScript`

- Reduce scope of unchecked_cast annotation

Polish `KotlinBuildScriptIntegrationTest`

- Replace `iterable.map(f).joinToString()` by `iterable.joinToString(f)`

Register implicit capabilities for conflict detection in more cases (#11334)

In general conflict detection for implicit capabilities is skipped

for performance optimization. However, if the corresponding capability

is explicitly declared by another component that was visited *before*,

we need to do the conflict detection between the component with

the implicit capability and the one visited earlier.

See also: #11300

Register implicit capabilities for conflict detection in more cases (#11334)

In general conflict detection for implicit capabilities is skipped

for performance optimization. However, if the corresponding capability

is explicitly declared by another component that was visited *before*,

we need to do the conflict detection between the component with

the implicit capability and the one visited earlier.

See also: #11300

Allow publication artifacts to be defined as files through providers

*Updated solution based on feedback to #11329*

This used to work in Gradle 5.5 (see #11054).

The combination of #9467 and #6775 broke this.

A builtBy dependency is added if the artifact is a TaskDependencyContainer,

which all Providers are (#9467). This dependency was silently doing

nothing in case of a plain File/String. This became an error (#6775)

because a File/String is nothing that can be resolved to a task.

We now only add a builtBy dependency, if the provider value or content is

actually produced by a task.

Allow publication artifacts to be defined as files through providers

*Updated solution based on feedback to #11329*

This used to work in Gradle 5.5 (see #11054).

The combination of #9467 and #6775 broke this.

A builtBy dependency is added if the artifact is a TaskDependencyContainer,

which all Providers are (#9467). This dependency was silently doing

nothing in case of a plain File/String. This became an error (#6775)

because a File/String is nothing that can be resolved to a task.

We now only add a builtBy dependency, if the provider value or content is

actually produced by a task.

Add a method to `Task` to allow runtime registration of the services that the task will use.

This is intended really just to be a placeholder for some kind of API where the usage can be declared.

Remove the `requiresResource()` methods from `AbstractTask`. In particular, remove the ability to express "how much" of the resource the task will use. For now, assume that usage by each task has equal weight.

Remove unused import

Add OS as inputs for unit tests (#11310)

This closes https://github.com/gradle/gradle-private/issues/2831

Previously we only add OS as inputs for integration tests but not for unit tests. This results in missing test coverage for some unit tests.

We need to add OS as inputs of unit test task as well.

Move the task-specific logic that determines the resources used by a task out of `DefaultExecutionPlan` and into the node implementations.

Most of this logic moves into `AbstractTask` and `DefaultBuildServiceRegistry` and the node deletegates to these.

Preserve `fileTree(mapOf(...))` behaviour for backward compatibility

See #11335

Use real sample title to improve GitHub rendering

Add Spring Boot application sample

Revert "Allow publication artifacts to be defined as files through providers (#11329)"

This reverts commit a4b79f33fee015bb5faded27426369ad54bae8dd.

Allow publication artifacts to be defined as files through providers (#11329)

This used to work in Gradle 5.5 (see #11054).

The combination of #9467 and #6775 broke this.

A builtBy dependency is added if the artifact is a TaskDependencyContainer,

which all Providers are (#9467). This dependency was silently doing

nothing in case of a plain File/String. This became an error (#6775)

because a File/String is nothing that can be resolved to a task.

We now only add a builtBy dependency, if the provider value or content is

actually produced by a task.

Add integration test for #11330

Fix Android not compiling the necessary classes

The method `fun getSources(): FileTree` does not override the method

`protected FileCollection getSources()`, since the AGP plugin 3.5.1 has

not been compiled against Gradle 6.0, and therefore the necessary bridge

method is not generated.