Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for flavor (0.19 sec)

  1. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy

                version = '2.0-SNAPSHOT'
    
                def flavor = Attribute.of('flavor', $type)
                dependencies {
                    attributesSchema {
                        attribute(flavor)
                    }
                }
    
                configurations {
                    foo.attributes { attribute(flavor, $freeValue) }
                    bar.attributes { attribute(flavor, $paidValue) }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentModelPluginTest.groovy

            then:
            single(toolChains).name == 'tc'
            platforms.size() == 1
            single(buildTypes).name == 'bt'
            single(flavors).name == 'flavor1'
        }
    
        def "creates binaries for executable"() {
            when:
            project.pluginManager.apply(NativeComponentModelPlugin)
            registry
                .mutate(NativeToolChainRegistry) { it.add toolChain("tc") }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

                        c1 { attributes { attribute(flavor, objects.named(Flavor, 'preview')); $debug } }
                        c2 { attributes { attribute(flavor, objects.named(Flavor, 'preview')); $release } }
                        c3 { attributes { attribute(flavor, objects.named(Flavor, 'full')); $debug } }
                        c4 { attributes { attribute(flavor, objects.named(Flavor, 'full')); $release } }
                    }
    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/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            def attr = Attribute.of(Flavor)
    
            given:
            schema.attribute(attr).disambiguationRules.add(CustomSelectionRule)
    
            def value1 = flavor('value1')
            def value2 = flavor('value2')
    
            def candidates = [value1, value2] as Set
    
            when:
            def best = schema.matcher().selectionSchema.disambiguate(attr, flavor('requested'), candidates)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

                }
    
                def flavor = Attribute.of('flavor', String)
    
                configurations {
                    custom {
                        description = "My custom configuration"
                        assert canBeResolved
                        canBeConsumed = false
    
                        attributes {
                            attribute(flavor, 'vanilla')
                        }
                    }
    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/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy

                    def distinguishingValues = distinguisher == 'flavor' ? "\n  - Value: 'paid' selects variant: 'bar'\n  - Value: 'free' selects variant: 'foo'" : "\n  - Value: 'bar' selects variant: 'bar'\n  - Value: 'foo' selects variant: 'foo'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedFilesApiIntegrationTest.groovy

                details.compatible()
            }
        }
    }
    
    def flavor = Attribute.of('flavor', String)
    
    allprojects {
        dependencies {
            attributesSchema.attribute(flavor)
        }
    }
    
    configurations {
        compile.attributes.attribute(flavor, 'preview')
    }
    
    dependencies {
        compile project(':a')
    }
    
    project(':a') {
        dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy

    rootProject.name = 'test'
    include 'a', 'b'
    """
            buildFile << """
    def usage = Attribute.of('usage', String)
    def flavor = Attribute.of('flavor', String)
    def buildType = Attribute.of('buildType', String)
    
    allprojects {
        dependencies {
           attributesSchema {
              attribute(usage)
              attribute(flavor)
              attribute(buildType)
           }
        }
        configurations {
            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)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/VariantAwareResolutionWithConfigurationAttributesIntegrationTest.groovy

                            def flavor = Attribute.of('flavor', String)
                            p.dependencies.attributesSchema {
                               attribute(buildType)
                               attribute(usage)
                               attribute(flavor)
                            }
                            def buildTypes = ['debug', 'release']
                            def flavors = ['free', 'paid']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. pkg/test/echo/server/endpoint/http.go

    	}
    
    	// Choose a random "slice" from a pie
    	totalSlices := 0
    	for _, flavor := range codes {
    		totalSlices += flavor.slices
    	}
    	// nolint: gosec
    	// Test only code
    	slice := rand.Intn(totalSlices)
    
    	// What flavor is that slice?
    	responseCode := codes[len(codes)-1].httpResponseCode // Assume the last slice
    	position := 0
    	for n, flavor := range codes {
    		if position > slice {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
Back to top