Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ComponentMetadataRule (0.36 sec)

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

                def quality = Attribute.of("quality", String)
                configurations {
                    conf.attributes.attribute(quality, 'qa')
                }
    
                class AttributeRule implements ComponentMetadataRule {
                    Attribute targetAttribute
    
                    @javax.inject.Inject
                    public AttributeRule(Attribute attribute) {
                        targetAttribute = attribute
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/component_metadata_rules.adoc

    Gradle enforces isolation of instances of `ComponentMetadataRule`.
    This means that all parameters must be `Serializable` or known Gradle types that can be isolated.
    
    In addition, Gradle services can be injected into your `ComponentMetadataRule`.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                    implementation 'composite-lib:composite-lib'
                }
    
                @CacheableRule
                abstract class ChangingAttributeRule implements ComponentMetadataRule {
                    final String attrValue
                    @Inject ChangingAttributeRule(String attrValue) { this.attrValue = attrValue }
                    void execute(ComponentMetadataContext context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/build.gradle

        // Because this is done directly by the plugin application logic, we can't use a ComponentMetadataRule to exclude it.
        // See: https://github.com/gradle/guides/blob/ba018cec535d90f75876bfcca29381d213a956cc/subprojects/gradle-guides-plugin/src/main/java/org/gradle/docs/samples/internal/SamplesDocumentationPlugin.java#L335
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 15:37:11 UTC 2024
    - 42K bytes
    - Viewed (0)
Back to top