services

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix for previous commit.

    • -8
    • +7
    ./internal/DefaultBuildServicesRegistryTest.groovy
Fix for previous commit.

    • -8
    • +7
    ./internal/DefaultBuildServicesRegistryTest.groovy
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.

    • -8
    • +7
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 6 more files in changeset.
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.

    • -8
    • +7
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 6 more files in changeset.
Test fixes for previous commit.

    • -1
    • +34
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Test fixes for previous commit.

    • -1
    • +34
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Test fixes for previous commit.

    • -1
    • +34
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
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.

    • -1
    • +34
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 16 more files in changeset.
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.

    • -1
    • +34
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 16 more files in changeset.
Fix for previous commit.

    • -2
    • +15
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Fix for previous commit.

    • -2
    • +15
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Fix for previous commit.

    • -2
    • +15
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Fix for previous commit.

    • -2
    • +15
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 3 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -0
    • +24
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 17 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -0
    • +24
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 17 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -2
    • +39
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 21 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -0
    • +24
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 17 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -0
    • +24
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 17 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -2
    • +39
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 21 more files in changeset.
Merge 'shared resources' into 'build services', so that each service can optionally have a maximum number of concurrent usages defined.

When scheduling tasks, Gradle will not start a task that uses a build service when there are already the maximum number of tasks already running for that service.

    • -0
    • +24
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 17 more files in changeset.
Fixes.

    • -0
    • +29
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 24 more files in changeset.
Add `BuildServiceParameters.None` marker type that is used to indicate that a build service does not take any parameters, to match the pattern used in other places.

Extract some validation logic from several places so it can be reused in the places where parameterized isolated objects, such as artifact transforms or build services, are registered.

    • -0
    • +29
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 35 more files in changeset.
Add `BuildServiceParameters.None` marker type that is used to indicate that a build service does not take any parameters, to match the pattern used in other places.

Extract some validation logic from several places so it can be reused in the places where parameterized isolated objects, such as artifact transforms or build services, are registered.

    • -0
    • +29
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 35 more files in changeset.
Isolate the parameters of a build service when the service is instantiated.

This is intended to be an approximate implementation of the contract. This should later be refactored to work the same way as for artifact transforms.

    • -1
    • +27
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Isolate the parameters of a build service when the service is instantiated.

This is intended to be an approximate implementation of the contract. This should later be refactored to work the same way as for artifact transforms.

    • -1
    • +27
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Isolate the parameters of a build service when the service is instantiated.

This is intended to be an approximate implementation of the contract. This should later be refactored to work the same way as for artifact transforms.

    • -1
    • +27
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Rename `BuildServiceRegistry.maybeRegister()` to `registerIfAbsent()`.

    • -13
    • +13
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Rename `BuildServiceRegistry.maybeRegister()` to `registerIfAbsent()`.

    • -13
    • +13
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Rename `BuildServiceRegistry.maybeRegister()` to `registerIfAbsent()`.

    • -13
    • +13
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.
Rename `BuildServiceRegistry.maybeRegister()` to `registerIfAbsent()`.

    • -13
    • +13
    ./internal/DefaultBuildServicesRegistryTest.groovy
  1. … 4 more files in changeset.