Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 85 for attributesSchema (0.45 sec)

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

            buildFile << """
                def CUSTOM_ATTRIBUTE = Attribute.of('custom', String)
                def CUSTOM2_ATTRIBUTE = Attribute.of('custom2', String)
                dependencies.attributesSchema.attribute(CUSTOM_ATTRIBUTE)
                dependencies.attributesSchema.attribute(CUSTOM2_ATTRIBUTE)
            """
        }
    
        void "can select distinct variants of the same component by using different attributes if they have different capabilities"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 22:29:19 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/TransformLoggingIntegrationTest.groovy

                def usage = Attribute.of('usage', String)
                def artifactType = Attribute.of('artifactType', String)
    
                allprojects {
                    dependencies {
                        attributesSchema {
                            attribute(usage)
                        }
                        registerTransform(GreenMultiplier) {
                            from.attribute(artifactType, "jar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/DependencyGraphBuilderTest.groovy

        def conflictResolver = Mock(ModuleConflictResolver)
        def idResolver = Mock(DependencyToComponentIdResolver)
        def metaDataResolver = Mock(ComponentMetaDataResolver)
        def attributesSchema = Mock(AttributesSchemaInternal)
        def attributes = ImmutableAttributes.EMPTY
        def moduleReplacements = Mock(ModuleReplacementsData)
        def moduleIdentifierFactory = Mock(ImmutableModuleIdentifierFactory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/VariantAwareResolutionWithConfigurationAttributesIntegrationTest.groovy

                            def usage = Attribute.of('usage', String)
                            def flavor = Attribute.of('flavor', String)
                            p.dependencies.attributesSchema {
                               attribute(buildType)
                               attribute(usage)
                               attribute(flavor)
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                include 'project-lib'
            """
            def variantDeclaration = { sysPropName ->
                """
                    def myAttribute = Attribute.of("my.attribute.name", String)
                    dependencies.attributesSchema { attribute(myAttribute) }
                    configurations {
                        runtimeElements {
                            attributes { attribute(myAttribute, System.getProperty('$sysPropName', 'default-value')) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/initialization/CalculateTaskGraphBuildOperationIntegrationTest.groovy

                def minified = Attribute.of('minified', Boolean)
                def optimized = Attribute.of('optimized', Boolean)
                dependencies {
                    attributesSchema {
                        attribute(minified)
                        attribute(optimized)
                    }
                    artifactTypes.getByName("jar") {
                        attributes.attribute(minified, false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/DependenciesAttributesIntegrationTest.groovy

    class DependenciesAttributesIntegrationTest extends AbstractModuleDependencyResolveTest {
    
        def setup() {
            buildFile << """
                def CUSTOM_ATTRIBUTE = Attribute.of('custom', String)
                dependencies.attributesSchema.attribute(CUSTOM_ATTRIBUTE)
            """
        }
    
        def "can declare attributes on dependencies"() {
            given:
            repository {
                'org:test:1.0'()
            }
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 02:13:52 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/variant_attributes.adoc

    Attribute compatibility rules have to be registered via the link:{javadocPath}/org/gradle/api/attributes/AttributeMatchingStrategy.html[attribute matching strategy] that you can obtain from the link:{javadocPath}/org/gradle/api/attributes/AttributesSchema.html[attributes schema].
    
    [[sec:abm_disambiguation_rules]]
    === Attribute disambiguation rules
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 18:51:23 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ArtifactDeclarationIntegrationTest.groovy

                rootProject.name = 'test'
            """
            buildFile << """
                def usage = Attribute.of('usage', String)
                allprojects {
                    dependencies {
                        attributesSchema {
                            attribute(usage)
                        }
                    }
                    configurations { compile { attributes.attribute(usage, 'for-compile') } }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIntegrationTest.groovy

                def buildType = Attribute.of("buildType", String)
                def flavor = Attribute.of("flavor", String)
                allprojects {
                    dependencies.attributesSchema.attribute(buildType)
                    dependencies.attributesSchema.attribute(flavor)
                }
    
                project(':lib') {
                    task jar1(type: Jar) {
                        destinationDirectory = buildDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 100.8K bytes
    - Viewed (0)
Back to top