BuildActionRunnerBackedConsumerConnectionTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove support for connecting to Gradle <2.6

    • -154
    • +0
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 147 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
    • +0
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 30 more files in changeset.
Complete the transition to a declarative API for `ProtocolToModelAdapter`, by removing the `adapt(..., Action)` method and replacing usages of this with usages of `ViewBuilder<T>`.

    • -4
    • +12
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 24 more files in changeset.
Unit test fixes

    • -1
    • +1
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 3 more files in changeset.
Made some changes to error messages from tooling api when using a feature that is not supported for the target Gradle version. Added some test coverage for attempting to use an unsupported feature.

    • -1
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 23 more files in changeset.
Detangled CancellableConsumerConnection from ModelBuilderBackedConsumerConnection, as they don't really share anything.

    • -3
    • +0
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 11 more files in changeset.
Introduced ActionRunner as analog for ModelProducer. Changed AbstractConsumerConnection implementations so that they are composed from an ActionRunner and ModelProducer.

    • -0
    • +7
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 11 more files in changeset.
Removed CancellationToken from ConsumerConnection methods - it's packaged in the parameters instead.

    • -10
    • +4
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 22 more files in changeset.
Pass cancellation token to ConsumerConnection in ToolingAPI.

    • -4
    • +10
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 27 more files in changeset.
Add Launchable.getDisplayName(), move Launchable.getName() to TaskSelector.

    • -2
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 16 more files in changeset.
REVIEW-4294 Rename VersionDetails.isModelSupported() to maySupportModel().

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

    • -9
    • +9
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 13 more files in changeset.
Merged ConsumerConnectionParameters into DefaultConnectionParameters.

    • -2
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 18 more files in changeset.
Remove GradleProject.getTaskSelectors.

Keep only BuildInvocations model as a way how to access selectors.

    • -2
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 13 more files in changeset.
GRADLE-2414 Different way how to pass userHomeDir to Distribution.

Keep DistributionFactory immutable and get userHomeDir used to install

Gradle distribution from connection parameters when creating tooling

classpath.

    • -1
    • +1
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 15 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.

    • -2
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 16 more files in changeset.
Merged PartialGradleBuild and DefaultGradleBuild.

    • -1
    • +1
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 9 more files in changeset.
some changes on tooling-api related to REVIEW-3088 - implement moduleproducer for other ConsumerConnection implementation - build GradleBuild from GradleProject instead of EclipseProject to avoid dragging in all kind of unrelated stuff.

    • -0
    • +20
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 10 more files in changeset.
Updated the 'unknown model' exception so that it informs the user which version the model was added, in the case of a built-in model, and when custom model support was added, in the case of some other model.

    • -1
    • +15
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 10 more files in changeset.
Don't attempt to run tooling API build actions against Gradle versions that don't support it.

    • -1
    • +0
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 12 more files in changeset.
Moved validation of provided operation parameters down from ModelProvider to the specific provider adapter.

- Removed a bunch of now unused methods from VersionDetails.

- Include target Gradle version in error message when unsupported parameter is used.

    • -3
    • +0
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 11 more files in changeset.
Pushed the check whether a model is supported by the provider down from ModelProvider to the various adapters.

    • -14
    • +22
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 10 more files in changeset.
Infer which capabilities the tooling API provider supports based on inspecting which protocol types it implements rather than its version number.

    • -6
    • +42
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 14 more files in changeset.
Pushed the mapping from model type -> protocol type and converting the resulting model right down to just above the provider.

    • -4
    • +9
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 15 more files in changeset.
Introduced ProviderMetaDataRegistry as a factory for VersionDetails for a given provider version. Replaced a bunch of specific methods on VersionDetails with isModelSupported().

    • -1
    • +3
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 14 more files in changeset.
Added ConfigurableConnection, to allow a provider connection to receive some configuration. Changed the consumer to prefer this over configureLogging(boolean).

Currently, configuration provided is the consumer version and whether verbose logging should be enabled.

    • -1
    • +13
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 14 more files in changeset.
Merged ConsumerConnection.getModel() and executeBuild() into a single run() method.

    • -11
    • +1
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 15 more files in changeset.
- Changed BuildActionRunner.run() to return a BuildResult instance. - Renamed org.g.tooling.internal.provider.input to o.g.tooling.internal.provider.connection.

    • -4
    • +11
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 19 more files in changeset.
Changed BuildActionRunner so that a single build parameter object is passed across to the provider.

    • -2
    • +2
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 7 more files in changeset.
Changed ConsumerOperationParameters to extend BuildParametersVersion1, and removed this parameter from ConsumerConnection and AsyncConnection.

    • -5
    • +3
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 15 more files in changeset.
- Introduced BuildActionRunner to the tooling API protocol. Can be implemented by a provider connection to mix in capability to run a build and return a result. - Use this interface in the consumer, if the connection implements it, otherwise fall back to InternalConnection and finally ConnectionVersion4. - Split up AdaptedConnection into specific implementations for each of the above cases.

    • -0
    • +54
    ./BuildActionRunnerBackedConsumerConnectionTest.groovy
  1. … 12 more files in changeset.