Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for closestMatch (0.22 sec)

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

                        if (candidateValues.contains(javaApiJars)) {
                            details.closestMatch(javaApiJars);
                        } else if (candidateValues.contains(javaApi)) {
                            details.closestMatch(javaApi);
                        } else if (candidateValues.contains(javaRuntimeJars)) {
                            details.closestMatch(javaRuntimeJars);
                        } else if (candidateValues.contains(javaRuntime)) {
    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/api/internal/artifacts/dsl/dependencies/PlatformSupport.java

                        // default to library
                        details.closestMatch(library);
                    } else if (candidateValues.contains(platform)) {
                        // default to normal platform when only platforms are available and nothing has been requested
                        details.closestMatch(platform);
                    }
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

                        if (details.consumerValue == null) {
                            details.closestMatch(details.candidateValues.find { it.name == 'ONE' })
                        } else if (details.consumerValue.name == 'free') {
                            details.closestMatch(details.candidateValues.find { it.name == 'TWO' })
                        }
                    }
                }
    
    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. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/PreferJavaRuntimeVariant.java

                if (details.getConsumerValue() == null) {
                    Set<Usage> candidates = details.getCandidateValues();
                    if (candidates.contains(runtimeUsage)) {
                        details.closestMatch(runtimeUsage);
                    }
                }
            }
        }
    
        private static class PreferJarVariantUsageDisambiguationRule implements DisambiguationRule<LibraryElements> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

                    void execute(MultipleCandidatesDetails<String> details) {
                        if (details.candidateValues.contains('chocolate')) {
                            details.closestMatch('chocolate')
                        }
                    }
                }
    
                dependencies.attributesSchema {
                    attribute(flavor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/GradlePluginVariantsSupport.java

                        bestMatchVersion = producer;
                        bestMatchAttribute = candidate;
                    }
                }
                if (bestMatchAttribute != null) {
                    details.closestMatch(bestMatchAttribute);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:13:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/JavaEcosystemSupportTest.groovy

            then:
            1 * details.getConsumerValue() >> bundling(consumer)
            1 * details.getCandidateValues() >> candidates.collect { bundling(it) }
            1 * details.closestMatch({ assert it.name == expected })
    
            where:
            consumer | candidates                     | expected
            null     | [EXTERNAL, EMBEDDED, SHADOWED] | EXTERNAL
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy

    }
    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)
        }
        attribute(flavor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy

    class OneRule implements AttributeDisambiguationRule<String> {
        void execute(MultipleCandidatesDetails<String> details) {
            details.closestMatch('one')
        }
    }
    class TwoRule implements AttributeDisambiguationRule<String> {
        void execute(MultipleCandidatesDetails<String> details) {
            details.closestMatch('two')
        }
    }
    
    allprojects {
        configurations.compile.attributes.attribute(usage, 'compile')
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 22:29:19 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedFilesApiIntegrationTest.groovy

        void execute(MultipleCandidatesDetails<String> details) {
            details.closestMatch('free')
        }
    }
    class SelectPaidRule implements AttributeDisambiguationRule<String> {
        void execute(MultipleCandidatesDetails<String> details) {
            details.closestMatch('paid')
        }
    }
    
    def flavor = Attribute.of('flavor', String)
    
    dependencies {
        compile project(':a')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top