Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for disambiguation (0.2 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/MultipleCandidateMatcher.java

     * </li>
     * <li>
     * Otherwise continue with disambiguation. Disambiguation iterates through the attributes and presents the different values to the {@link AttributeSelectionSchema}.
     * The schema can declare a subset of these values as preferred. Candidates whose value is not in that subset are rejected. If a single candidate remains after
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

    Disambiguation Rules
    --------------------------------------------------
    The following Attributes have disambiguation rules defined.
    
        - flavor""")
    
            and:
            doesNotHaveLegacyLegend()
        }
    
        def "disambiguation rules are printed if added to attributes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/variant_attributes.adoc

    [[sec:abm_disambiguation_rules]]
    === Attribute disambiguation rules
    
    Since multiple values for an attribute can be _compatible_, Gradle needs to choose the "best" candidate between all compatible candidates. This is called "disambiguation".
    
    This is done by implementing an link:{javadocPath}/org/gradle/api/attributes/AttributeDisambiguationRule.html[attribute disambiguation rule].
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 18:51:23 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

            failure.assertHasCause("Unexpected type for attribute 'flavor' provided. Expected a value of type Flavor but found a value of type java.lang.Integer.")
        }
    
        def "selects best compatible match using consumers disambiguation rules when multiple are compatible"() {
            given:
            createDirs("a", "b")
            file('settings.gradle') << "include 'a', 'b'"
            buildFile << """
                $typeDefs
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 48.1K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/renderer/ConsoleConfigurationReportRenderer.java

            if (!attributesWithDisambiguationRules.isEmpty()) {
                printHeader(() -> message("Disambiguation Rules"));
                writeDescription("The following Attributes have disambiguation rules defined.");
                newLine();
                try {
                    depth++;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 16:17:12 UTC 2022
    - 18.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/DefaultAttributeMatcherTest.groovy

            expect:
            matcher.matches([candidate1, candidate2, candidate3, candidate4, candidate5], requested, explanationBuilder) == [candidate1, candidate3, candidate4, candidate5]
        }
    
        def "applies disambiguation rules and selects intersection of best matches for each attribute"() {
            given:
            def matcher = new DefaultAttributeMatcher(schema)
    
            def usage = Attribute.of('usage', String)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 24.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy

            // Currently builds all file dependencies
            executed ":lib:classes", ":lib:utilClasses", ":lib:utilDir", ":lib:utilJar", ":ui:classes", ":app:resolve"
        }
    
        def "applies consumers compatibility and disambiguation rules when selecting variant"() {
            buildFile << """
    class BuildTypeCompatibilityRule implements AttributeCompatibilityRule<String> {
        void execute(CompatibilityCheckDetails<String> details) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/dep-man/dependency_management_terminology.adoc

    When dependencies are resolved, a set of attributes are requested and Gradle finds the best fitting variant(s) for each component in the dependency graph.
    Compatibility and disambiguation rules can be implemented for an attribute to express compatibility between values (e.g. Java 8 is compatible with Java 11, but Java 11 should be preferred if the requested version is 11 or higher).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 18:45:05 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/variant_model.adoc

        - org.gradle.libraryelements
        - org.gradle.plugin.api-version
        - org.gradle.usage
    
    --------------------------------------------------
    Disambiguation Rules
    --------------------------------------------------
    Description = The following Attributes have disambiguation rules defined.
    
        - org.gradle.category
        - org.gradle.dependency.bundling
        - org.gradle.jvm.environment
        - org.gradle.jvm.version
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/debug/debug.cc

        }
        name_parts.emplace_back(sanitized_name);
        name_parts.emplace_back(kFiletypeSuffix);
    
        // Build a filename such that it contains function names and pass names for
        // easy disambiguation.
        const std::string filename = tsl::io::JoinPath(
            dump_dir_, absl::StrJoin(name_parts.begin(), name_parts.end(), "."));
    
        // Open the file for dumping. Failures are logged instead of being
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 02:44:52 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top