Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for AttributesSchema (0.2 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/DependencyHandler.java

        /**
         * Configures the attributes schema. The action is passed a {@link AttributesSchema} instance.
         * @param configureAction the configure action
         * @return the configured schema
         *
         * @since 3.4
         */
        AttributesSchema attributesSchema(Action<? super AttributesSchema> configureAction);
    
        /**
         * Returns the attributes schema for this handler.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:16:36 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/OutgoingVariantsMutationIntegrationTest.groovy

            buildFile << """
                def usage = Attribute.of('usage', String)
                def format = Attribute.of('format', String)
                allprojects {
                    dependencies {
                        attributesSchema {
                            attribute(usage)
                        }
                    }
                    configurations { compile { attributes.attribute(usage, 'for-compile') } }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:59:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-minify/groovy/build.gradle

            "com.google.common.base.AbstractIterator"
        ] as Set
    ]
    
    // end::artifact-transform-registration[]
    // tag::artifact-transform-attribute-setup[]
    dependencies {
        attributesSchema {
            attribute(minified)                      // <1>
        }
        artifactTypes.getByName("jar") {
            attributes.attribute(minified, false)    // <2>
        }
    }
    
    configurations.all {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-minify/kotlin/build.gradle.kts

            "com.google.common.base.Optional",
            "com.google.common.base.AbstractIterator"
        )
    )
    
    // end::artifact-transform-registration[]
    // tag::artifact-transform-attribute-setup[]
    dependencies {
        attributesSchema {
            attribute(minified)                      // <1>
        }
        artifactTypes.getByName("jar") {
            attributes.attribute(minified, false)    // <2>
        }
    }
    
    configurations.all {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy

            given:
            buildFile """
                def artifactType = Attribute.of('artifactType', String)
                def compressed = Attribute.of('compressed', Boolean)
    
                dependencies {
                    attributesSchema {
                        attribute(compressed)
                    }
                    artifactTypes {
                        zip {
                            attributes.attribute(compressed, true)
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandlerTest.groovy

    import org.gradle.api.artifacts.dsl.ComponentMetadataHandler
    import org.gradle.api.artifacts.dsl.ComponentModuleMetadataHandler
    import org.gradle.api.artifacts.dsl.DependencyConstraintHandler
    import org.gradle.api.attributes.AttributesSchema
    import org.gradle.api.attributes.Category
    import org.gradle.api.internal.artifacts.DependencyManagementTestUtil
    import org.gradle.api.internal.artifacts.VariantTransformRegistry
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 10:37:21 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

            "it.unimi.dsi.fastutil.objects.ReferenceArrayList",
            "it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet",
        )
    )
    plugins.withId("java-base") {
        dependencies {
            attributesSchema {
                attribute(minified)
            }
            // It would be nice if we could be more selective about which variants to apply this to.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/VariantAttributesRulesIntegrationTest.groovy

                    }
                }
    
                configurations {
                    ${variantToTest}.attributes.attribute(quality, 'qa')
                }
    
                dependencies {
                    attributesSchema {
                        attribute(quality)
                    }
                    components {
                        withModule('org.test:module', AttributeRule) {
                            params(quality)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultVersionedComponentChooserTest.groovy

        def attributesSchema = new DefaultAttributesSchema(TestUtil.instantiatorFactory(), SnapshotTestUtil.isolatableFactory())
        def consumerAttributes = ImmutableAttributes.EMPTY
        def cachePolicy = new DefaultCachePolicy()
    
        def chooser = new DefaultVersionedComponentChooser(versionComparator, versionParser, componentSelectionRules, attributesSchema)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/FileDependencyResolveIntegrationTest.groovy

                                attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, "thing")
                            }
                        }
                    }
                    dependencies {
                        attributesSchema {
                            attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE) {
                                compatibilityRules.add(DirectoryIsOk)
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 23 22:33:17 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top