Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove 'compare-gradle-builds' plugin from distribution (#10198)

* Remove non-public ProjectOutcomes model type

* Remove 'compare-gradle-builds' plugin from distribution

  1. … 140 more files in changeset.
Remove non-public ProjectOutcomes model type

  1. … 9 more files in changeset.
Remove non-public ProjectOutcomes model type

  1. … 9 more files in changeset.
Apply `Explicit type can be replaced with <>` inspection the whole project

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

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

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

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

  1. … 999 more files in changeset.
Add some context to the exception thrown by the TAPI when the daemon is force killed on cancellation.

Remove some consumer side assumptions about the implementation of the producer, which were present as a work around to produce the correct exception in the consumer when the daemon is force killed by the producer and for very old producer versions.

  1. … 11 more files in changeset.
Remove dead code from the TAPI

  1. … 22 more files in changeset.
Remove support for connecting to Gradle <2.6

  1. … 147 more files in changeset.
Add a method to `GradleBuild` tooling model to allow all of the builds that participate in a composite and that are relevant to IDE models to be queried, rather than have the IDE traverse the graph of included builds. This also allows other kinds of builds, e.g. `buildSrc`, to be surfaced to IDEs later.

  1. … 8 more files in changeset.
Change target version from 4.7 to 4.8

Changing all uses of 4.7 in documentation and code.

Signed-off-by: Lucas Smaira <lsmaira@google.com>

  1. … 34 more files in changeset.
Introduce support for running phased actions

This commit introduces the ability of running multiple build actions in

different phases of the build. These actions are passed by the client

through the tooling api.

With this commit, a single action can be added to each one of the

supporting phases (after projects are loaded, after projects are

evaluated and after tasks are run).

This feature allows improvements like running actions that call a model

builder modifying the graph tasks, and then it is possible to first

fetch a model and then execute tasks, in this order. e.g. Android Studio

sync + source generation.

Signed-off-by: Lucas Smaira <lsmaira@google.com>

  1. … 54 more files in changeset.
Change version of parameterized models to 4.4

This commit modifies all the java docs and concerned files in previous

commits in this pull request.

  1. … 32 more files in changeset.
Change version of parameterized models to 4.3

This commit modifies all the java docs and concerned files in previous

commits.

  1. … 32 more files in changeset.
Introduce creation of parameterized tooling models

This commit introduces the possibility of passing parameters through the

Tooling API to the model builders in order to create models based on

information received by the client.

This feature allows plugins to register a model builder for a given

model and parameter and then build models based on the received

parameter. It is preferable to passing gradle properties for two

reasons: first convenience and second because parameters can be created

inside the BuildAction.

A new interface ToolingParameterizedModelBuilder was created and should

be extended by parameterized builders. New methods were added to the

BuildController in order to build models with parameters. In order to

keep cross version compatibility, new protocol interfaces were created.

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

With javax.annotation.Nullable.

  1. … 460 more files in changeset.
Throw Exception when can't run tasks before action

An UnsupportedVersionException is thrown when forTasks() method of

BuildActionExecuter is used and Gradle version doesn't support running

tasks before executing action.

  1. … 2 more files in changeset.
Fail operation when target gradle doesn't support setting env vars

  1. … 8 more files in changeset.
Fix a few cosmetic issues

  1. … 2 more files in changeset.
Apply all model mixins in build actions

Up until now many compatibilty mappings were only applied

when calling `ProjectConnection.getModel()`, but not when using

`BuildController.getModel()`. As a result, models retrieved by

a build action were less user friendly.

Both code paths now use the same compatibility mapping logic.

  1. … 30 more files in changeset.
Replace usage of `String#format` with good old string concatenation

The rationale behind this change is that while `String#format` is usually admitted as good for readability (this is arguable),

in practice it is very bad for performance. Since Java 6, the JVM (the JIT, to be correct) does a pretty good job at optimizing

string concatenation. However, it is only capable to do so if we're using "dirty" string concatenations (using `+`), or `StringBuilder`.

However, usage of `StringBuilder` is not recommended either for 2 reasons:

1. it significantly decreases code readability

2. in Java 9, String concatenation is even more optimized thanks to `invokedynamic`, and code using `StringBuilder` will *not* benefit

from this optimization.

There are sill leftover `String#format` calls in the code, in the following cases:

- the call is used to generate an exception message. That's 90% of the remaining calls.

- the call is obviously a debug message, often used in `toString` (because as we all know, `toString` should only be used for debugging)

- the format includes specific number formatting patterns

- I missed it

  1. … 226 more files in changeset.
Check failure messages when retrieving unsupported models from composites

+review REVIEW-5851

  1. … 5 more files in changeset.
Revert "Make VersionDetail Serializable"

This reverts commit 901ce5984f9d0f3dc7a942b27038d2a7e1956081.

Make VersionDetail Serializable

Detangled CancellableConsumerConnection from ModelBuilderBackedConsumerConnection, as they don't really share anything.

  1. … 11 more files in changeset.
Tooling API issues warning when provider does not support build cancellation.

  1. … 13 more files in changeset.
Add Launchable.getDisplayName(), move Launchable.getName() to TaskSelector.

  1. … 16 more files in changeset.
REVIEW-4294 Rename VersionDetails.isModelSupported() to maySupportModel().

Add a test for custom model class related to that meaning.

  1. … 13 more files in changeset.
GRADLE-2434 Implement GradleProject.getTaskSelectors.

Use mixin for versions 1.2-1.11 and provide the data directly

in DefaultGradleProject for newer versions.

  1. … 16 more files in changeset.
Moved the new tooling model types into a `gradle` subpackage.

  1. … 18 more files in changeset.