Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 85 for attributesSchema (0.21 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributeSelectionSchemaTest.groovy

        private AttributesSchemaInternal attributesSchema = Spy(new DefaultAttributesSchema(TestUtil.instantiatorFactory(), SnapshotTestUtil.isolatableFactory()))
        private AttributeSelectionSchema schema = attributesSchema.matcher().selectionSchema
    
        def "collects extra attributes, single candidate"() {
            def attr1 = Attribute.of("foo", String)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 20:17:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/AbstractConfigurationAttributesResolveIntegrationTest.groovy

            given:
            createDirs("a", "b")
            file('settings.gradle') << "include 'a', 'b'"
            buildFile << """
                $typeDefs
    
                project(':a') {
                    dependencies.attributesSchema {
                        attribute(buildType)
                        attribute(flavor)
                    }
                    configurations {
                        compile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 17:30:11 UTC 2024
    - 64K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/artifacts/DependencyResolutionServices.java

    import org.gradle.api.artifacts.dsl.DependencyHandler;
    import org.gradle.api.artifacts.dsl.DependencyLockingHandler;
    import org.gradle.api.artifacts.dsl.RepositoryHandler;
    import org.gradle.api.attributes.AttributesSchema;
    import org.gradle.api.internal.attributes.ImmutableAttributesFactory;
    import org.gradle.api.model.ObjectFactory;
    
    /**
     * Provides access to services required for dependency resolution.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:20:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ResolveState.java

        ) {
            this.idGenerator = idGenerator;
            this.idResolver = idResolver;
            this.metaDataResolver = metaDataResolver;
            this.edgeFilter = edgeFilter;
            this.attributesSchema = attributesSchema;
            this.moduleExclusions = moduleExclusions;
            this.componentSelectorConverter = componentSelectorConverter;
            this.attributesFactory = attributesFactory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/TargetJvmVersionRulesTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.api.internal.artifacts
    
    import org.gradle.api.attributes.AttributesSchema
    import org.gradle.api.attributes.java.TargetJvmVersion
    import org.gradle.api.internal.attributes.CompatibilityCheckResult
    import org.gradle.api.internal.attributes.CompatibilityRule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 03 17:43:36 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/internal/DefaultPluginArtifactRepositories.java

            this.sharedRepositories = sharedRepositories;
    
            AttributesSchemaInternal attributesSchema = (AttributesSchemaInternal) Objects.requireNonNull(dependencyResolutionServices).getAttributesSchema();
            JavaEcosystemSupport.configureSchema(attributesSchema, dependencyResolutionServices.getObjectFactory());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:13:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy

    def buildType = Attribute.of('buildType', String)
    def flavor = Attribute.of('flavor', String)
    
    allprojects {
        repositories {
            ivy { url '${ivyHttpRepo.uri}' }
        }
        dependencies {
            attributesSchema {
               attribute(usage)
               attribute(buildType)
               attribute(flavor)
            }
        }
        configurations {
            compile {
                attributes { attribute(usage, 'api') }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced/groovy/consumer/build.gradle

            }
        }
    }
    // end::ask-for-instrumented-classes[]
    
    // tag::compatibility-rule-use[]
    dependencies {
        attributesSchema {
            attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE) {
                compatibilityRules.add(InstrumentedJarsRule)
            }
        }
    }
    // end::compatibility-rule-use[]
    
    // tag::compatibility-rule[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedFilesApiIntegrationTest.groovy

    def flavor = Attribute.of('flavor', String)
    
    allprojects {
        dependencies {
            attributesSchema.attribute(flavor)
        }
    }
    
    configurations {
        compile.attributes.attribute(flavor, 'preview')
    }
    
    dependencies {
        compile project(':a')
    }
    
    project(':a') {
        dependencies {
            attributesSchema.attribute(flavor) {
                compatibilityRules.add(FreeRule)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/groovy/consumer/build.gradle

            }
        }
    }
    // end::ask-for-instrumented-classes[]
    
    // tag::compatibility-rule-use[]
    dependencies {
        attributesSchema {
            attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE) {
                compatibilityRules.add(InstrumentedJarsRule)
            }
        }
    }
    // end::compatibility-rule-use[]
    
    // tag::compatibility-rule[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top