Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for withDependencies (0.24 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/ComponentMetadataDetailsAdapterTest.groovy

            then: "the adapter rule is called once"
            noExceptionThrown()
            1 * adapterRule.execute(_) >> {
                def adapter = it[0]
                adapter.withDependencies(dependenciesRule)
                adapter.withDependencyConstraints(constraintsRule)
                adapter.attributes(attributesRule)
            }
            0 * _
    
            when:
            resolve(gradleMetadata)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 20:17:51 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesCachingIntegrationTest.groovy

        public void execute(ComponentMetadataContext context) {
                println "Rule executed on \${context.details.id}"
                context.details.allVariants {
                    println("Variant \$it")
                    withDependencies { deps ->
                        deps.each {
                           println "See dependency: \$it"
                        }
                    }
                }
        }
    }
    
    dependencies {
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

        }
    
        def "copied configuration inherits withDependencies actions"() {
            def original = conf()
            def seenOriginal = [] as Set<DependencySet>
            original.withDependencies { seenOriginal.add(it) }
    
            def copied = original.copy()
            def seenCopied = [] as Set<DependencySet>
            copied.withDependencies { seenCopied.add(it) }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/ComponentMetadataHandler.java

     *     id 'java'
     * }
     *
     * repositories {
     *     mavenCentral()
     * }
     *
     * dependencies {
     *     components {
     *         withModule("jaxen:jaxen") {
     *             allVariants {
     *                 withDependencies {
     *                     removeAll { it.group in ["dom4j", "jdom", "xerces", "maven-plugins", "xml-apis", "xom"] }
     *                 }
     *             }
     *
     *         }
     *     }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 06 22:26:55 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/constraints/DependencyConstraintsIntegrationTest.groovy

                        def details = context.details
                        if (details.id.name == 'indirect') {
                            details.allVariants {
                                withDependencies {
                                    it.each {
                                        if (it.name == 'bom') {
                                            it.attributes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                                .preserveModelVersion(false)
                                .root(false)
                                .parent(null)
                                .dependencyManagement(dependencyManagement.withDependencies(dependencies))
                                .build(null),
                        model);
                builder.packaging(POM_PACKAGING);
                builder.profiles(prune(model.getProfiles()));
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishDependenciesIntegTest.groovy

                    classpath = files()
                }
                dependencies {
                    api "org.test:dep1:1.0"
                }
                configurations.api.withDependencies { deps ->
                    deps.each { dep ->
                        dep.version { require 'X' }
                    }
                    deps.add project.dependencies.create("org.test:dep2:1.0")
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 16:29:10 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/resolution_rules.adoc

    At times, a plugin may want to modify the dependencies of a configuration before it is resolved.
    The `withDependencies` method permits dependencies to be added, removed or modified programmatically.
    
    .Modifying dependencies on a configuration
    ====
    include::sample[dir="snippets/dependencyManagement/customizingResolution-withDependencies/kotlin",files="build.gradle.kts[tags=configuration-with-dependencies]"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 00:09:06 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/jsonschemaprops.go

    	}
    	return b
    }
    
    // WithDependencies sets the Dependencies field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Dependencies field is set to the value of the last call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/dependency_version_alignment.adoc

    NOTE: This behavior is working reliable since Gradle 6.1. Effectively, it is similar to a <<component_metadata_rules.adoc#sec:component_metadata_rules,component metadata rule>> that adds a platform dependency to all members of the platform using `withDependencies`.
    
    [[sec:virtual_platform]]
    === Align versions of modules without a published platform
    
    .A dependency version alignment rule
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top