Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 442 for variants (0.23 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy

            println "variants: " + artifacts.collect { it.variant.attributes }
        }
    }
    """
            when:
            run 'show'
    
            then:
            outputContains("files: [a2.jar]")
            outputContains("variants: [{artifactType=jar, buildType=profile, flavor=tasty, usage=api}]")
        }
    
        def "applies producer's disambiguation rules when selecting variant"() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy

      - Configuration ':a:default' variant v1:
          - Unmatched attribute:
              - Doesn't say anything about usage (required 'compile')
      - Configuration ':a:default' variant v2:
          - Unmatched attribute:
              - Doesn't say anything about usage (required '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)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy

            toComponent.getCandidatesForGraphVariantSelection().variants.addAll(toConfig)
    
            expect:
            dep.selectVariants(variantSelector, attributes([:]), toComponent, attributesSchema, [] as Set).variants == [toConfig]
        }
    
        @Unroll("selects variant '#expected' from target component (#scenario)")
        def "selects the variant from target component that matches the attributes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  4. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyGradleModuleMetadataPublishIntegrationTest.groovy

            module.parsedModuleMetadata.variants.size() == 1
            def variant = module.parsedModuleMetadata.variants[0]
            variant.dependencies.size() == 3
    
            variant.dependencies[0].group == 'org'
            variant.dependencies[0].module == 'foo'
            variant.dependencies[0].version == '1.0'
            variant.dependencies[0].prefers == null
            variant.dependencies[0].strictly == '1.0'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 07:21:42 UTC 2023
    - 30.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/ConsumerProvidedVariantFinderTest.groovy

            def sourceVariant = variant([usage: "source"])
            def otherVariant = variant([usage: "other"])
            def variants = [ sourceVariant, otherVariant ]
    
            given:
            transformRegistry.registrations >> [transform1, transform2, transform3]
    
            when:
            def result = transformations.findTransformedVariants(variants, requested)
    
            then:
            result.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultExternalComponentGraphResolveState.java

                    .map(variant -> resolveStateFor(variant).asVariant())
                    .collect(Collectors.toList())
            );
            this.idGenerator = idGenerator;
            this.selectableVariantResults = graphMetadata.getVariantsForGraphTraversal().stream()
                .flatMap(variant -> variant.getVariants().stream())
                .map(variant -> new DefaultResolvedVariantResult(
                    getId(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/dep-man/06-publishing/publishing_customization.adoc

    Sometimes we want to add _more variants_ to or modify _existing variants_ of an existing component.
    For example, if you <<cross_project_publications.adoc#targeting-different-platforms, added a variant of a Java library for a different platform>>, you may just want to declare this additional variant on the `java` component itself.
    In general, declaring additional variants is often the best solution to publish _additional artifacts_.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 29 17:38:38 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/internal/component/ResolutionFailureHandlerIntegrationTest.groovy

            The only attribute distinguishing these variants is 'shape'. Add this attribute to the consumer's configuration to resolve the ambiguity:
              - Value: 'round' selects variant: 'blueRoundElements'
              - Value: 'square' selects variant: 'blueSquareElements'
              - Value: 'triangle' selects variant: 'blueTriangleElements'""")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/AbstractLazyModuleComponentResolveMetadata.java

            if (variantMetadataRules.getAdditionalVariants().isEmpty()) {
                return variants;
            }
            Map<String, VariantGraphResolveMetadata> variantsByName;
            ImmutableList.Builder<VariantGraphResolveMetadata> builder = new ImmutableList.Builder<>();
            if (variants.isPresent()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:21:11 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/native/cpp_application_plugin.adoc

    [[sec:cpp_application_task_variants]]
    === Variant-dependent Tasks
    
    The {cpp} Application Plugin creates tasks based on the variants of the application component.
    Read the <<building_cpp_projects.adoc#sec:introducing_build_variants-cpp,introduction to build variants>> for more information.
    The following diagram shows the relationship between variant-dependent tasks.
    
    .{cpp} Application Plugin variant-dependent task graph
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 13.6K bytes
    - Viewed (0)
Back to top