Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for countingService (0.16 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

            when:
            fails 'ambiguous'
    
            then:
            errorOutput.contains("Cannot resolve service by type for type 'CountingService' when there are two or more instances. Please also provide a service name. Instances found: counter1: CountingService, counter2: CountingService.")
        }
    
        def "can declare a service reference without a name when multiple services exist if a value is explicitly assigned"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy

                    "counter",
                    CountingService.class,
                    (spec) -> {}
                );
    
                tasks.register('count', CountingTask) {
                    ${ legacy ? """
                    countingService.convention(altServiceProvider)
                    usesService(altServiceProvider)
                    """ : "" }
                    ${ finalizeOnRead ? "countingService.finalizeValueOnRead()" : "" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 11:47:23 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top