Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for candidateValues (0.32 sec)

  1. platforms/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemSupport.java

                Set<Bundling> candidateValues = details.getCandidateValues();
                if (candidateValues.contains(consumerValue)) {
                    details.closestMatch(consumerValue);
                    return;
                }
                if (consumerValue == null) {
                    Bundling embedded = null;
                    for (Bundling candidateValue : candidateValues) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:13:00 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/MultipleCandidateMatcher.java

            Set<Object> candidateValues = getCandidateValues(compatible, c -> getCandidateValue(c, a));
            if (candidateValues.size() <= 1) {
                return;
            }
    
            Set<Object> matches = schema.disambiguate(requestedAttributes.get(a), requestedAttributeValues[a], candidateValues);
            if (matches != null && matches.size() < candidateValues.size()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

                    void execute(MultipleCandidatesDetails<Flavor> details) {
                        assert details.candidateValues*.name as Set == ['ONE', 'TWO'] as Set
                        details.candidateValues.each { producerValue ->
                            if (producerValue.name == 'TWO') {
                                details.closestMatch(producerValue)
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 48.1K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

                }
    
                class CategorySelectionRule implements AttributeDisambiguationRule<String> {
                    void execute(MultipleCandidatesDetails<String> details) {
                        if (details.candidateValues.contains('chocolate')) {
                            details.closestMatch('chocolate')
                        }
                    }
                }
    
                dependencies.attributesSchema {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy

                details.compatible()
            }
        }
    }
    class FlavorSelectionRule implements AttributeDisambiguationRule<String> {
        void execute(MultipleCandidatesDetails<String> details) {
            if (details.candidateValues.contains('tasty')) {
                details.closestMatch('tasty')
            }
        }
    }
    
    dependencies.attributesSchema {
        attribute(buildType) {
            compatibilityRules.add(BuildTypeCompatibilityRule)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

        static class CustomSelectionRule implements AttributeDisambiguationRule<Flavor> {
            @Override
            void execute(MultipleCandidatesDetails<Flavor> details) {
                details.closestMatch(details.candidateValues.first())
            }
        }
    
        def "compatibility rules can mark values as compatible"() {
            def attr = Attribute.of(Flavor)
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  7. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy

                }
    
                class DisRule implements AttributeDisambiguationRule<Thing> {
                    void execute(MultipleCandidatesDetails<Thing> details) {
                        for (Thing t: details.candidateValues) {
                            if (t.name == 'blue') {
                                details.closestMatch(t)
                                return
                            }
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/DefaultAttributeMatcherTest.groovy

                @Override
                void execute(MultipleCandidatesDetails details) {
                    if (details.consumerValue == "requested") {
                        assert details.candidateValues == ["best", "compatible"] as Set
                        details.closestMatch("best")
                    }
                }
            }
            schema.attribute(usage)
            schema.accept(usage, "requested", "best")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 24.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelector.java

                discarded.add(candidate);
            }
    
            @Override
            public <T extends HasAttributes> void candidateAttributeDoesNotMatch(T candidate, Attribute<?> attribute, Object requestedValue, AttributeValue<?> candidateValue) {
                recordDiscardedCandidate(candidate);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 30 13:33:37 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top