Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 85 for attributesSchema (0.32 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/groovy/build.gradle

        registerTransform(Unzip) {
            from.attribute(artifactType, 'jar')
            to.attribute(artifactType, 'java-classes-directory')
        }
    }
    // end::artifact-transform-registration[]
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    configurations.create("compile") {
        attributes.attribute usage, 'api'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/kotlin/build.gradle.kts

            parameters {
                externalClasspath.from(configurations.getByName("externalClasspath"))
                excludedPackage = "org.gradle.api"
            }
        }
    }
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    configurations.create("compile") {
        attributes.attribute(usage, "api")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/kotlin/build.gradle.kts

            from.attribute(artifactType, "jar")
            to.attribute(artifactType, "java-classes-directory")
        }
    }
    // end::artifact-transform-registration[]
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    configurations.create("compile") {
        attributes.attribute(usage, "api")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/plugins/JvmEcosystemPluginTest.groovy

        def setup() {
            project.pluginManager.apply(JvmEcosystemPlugin)
        }
    
        def "configures the attributes schema"() {
            when:
            def attrs = project.dependencies.attributesSchema.attributes
    
            then:
            attrs.containsAll(
                Usage.USAGE_ATTRIBUTE,
                Category.CATEGORY_ATTRIBUTE,
                Bundling.BUNDLING_ATTRIBUTE,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy

    """
            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
            create("default") {
                extendsFrom 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)
  6. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

                    void execute(CompatibilityCheckDetails<String> details) {
                        details.compatible()
                    }
                }
    
                dependencies.attributesSchema {
                    attribute(flavor) {
                        compatibilityRules.add(CategoryCompatibilityRule)
                    }
                }
            """.stripIndent()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/attributeMatching/kotlin/build.gradle.kts

    // An attribute of type `Usage`
    val myUsage = Attribute.of("my.usage.attribute", Usage::class.java)
    // end::define_attribute[]
    
    // tag::register-attributes[]
    dependencies.attributesSchema {
        // registers this attribute to the attributes schema
        attribute(myAttribute)
        attribute(myUsage)
    }
    // end::register-attributes[]
    
    // tag::attributes-on-configurations[]
    configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ConcurrentDependencyResolutionIntegrationTest.groovy

            given:
            buildFile << '''
                 def usage = Attribute.of('usage', String)
                 allprojects {
    
                    dependencies {
                        attributesSchema {
                            attribute(usage)
                        }
                    }
                    configurations {
                        compile {
                            attributes { attribute usage, 'api' }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/UnsupportedTypesCodecs.kt

    import org.gradle.api.artifacts.result.UnresolvedComponentResult
    import org.gradle.api.artifacts.type.ArtifactTypeContainer
    import org.gradle.api.attributes.AttributeMatchingStrategy
    import org.gradle.api.attributes.AttributesSchema
    import org.gradle.api.attributes.CompatibilityRuleChain
    import org.gradle.api.attributes.DisambiguationRuleChain
    import org.gradle.api.initialization.Settings
    import org.gradle.api.invocation.Gradle
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/groovy/build.gradle

            parameters {
                externalClasspath.from(configurations.externalClasspath)
                excludedPackage = "org.gradle.api"
            }
        }
    }
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    configurations.create("compile") {
        attributes.attribute usage, 'api'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top