Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for withDependencies (0.64 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationMutationIntegrationTest.groovy

            buildFile << """
    dependencies {
        compile "org:foo:1.0"
    }
    configurations.compile.withDependencies { DependencySet deps ->
        assert deps.collect {it.name} == ['foo']
    }
    configurations.compile.withDependencies { DependencySet deps ->
        deps.add project.dependencies.create("org:bar:1.0")
    }
    configurations.compile.withDependencies { DependencySet deps ->
        assert deps.collect {it.name} == ['foo', 'bar']
    }
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 19:31:56 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/AbstractDependencyMetadataRulesIntegrationTest.groovy

                class ModifyRule implements ComponentMetadataRule {
                    void execute(ComponentMetadataContext context) {
                        context.details.withVariant("$variantToTest") {
                            withDependencies {
                                removeAll { it.versionConstraint.requiredVersion == '1.0' }
                            }
                        }
                    }
                }
    
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 36.5K bytes
    - Viewed (0)
  3. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

        private val moduleToRemove: Set<String>
    ) : ComponentMetadataRule {
        override fun execute(context: ComponentMetadataContext) {
            context.details.allVariants {
                withDependencies {
                    removeAll { moduleToRemove.contains(it.name) }
                }
            }
        }
    }
    
    
    abstract class DependencyRemovalByGroupRule @Inject constructor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 20:15:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-metadataRule/kotlin/build.gradle.kts

    
    // tag::jaxen-rule-1[]
    @CacheableRule
    abstract class JaxenDependenciesRule: ComponentMetadataRule {
        override fun execute(context: ComponentMetadataContext) {
            context.details.allVariants {
                withDependencies {
                    removeAll { it.group in listOf("dom4j", "jdom", "xerces",  "maven-plugins", "xml-apis", "xom") }
                }
            }
        }
    }
    // end::jaxen-rule-1[]
    
    // tag::jaxen-rule-2[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-withDependencies/kotlin/build.gradle.kts

    // tag::configuration-with-dependencies[]
    configurations {
        create("implementation") {
            withDependencies {
                val dep = this.find { it.name == "to-modify" } as ExternalModuleDependency
                dep.version {
                    strictly("1.2")
                }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 336 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-withDependencies/groovy/build.gradle

    // tag::configuration-with-dependencies[]
    configurations {
        implementation {
            withDependencies { DependencySet dependencies ->
                ExternalModuleDependency dep = dependencies.find { it.name == 'to-modify' } as ExternalModuleDependency
                dep.version {
                    strictly "1.2"
                }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 384 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-metadataRule/groovy/build.gradle

    // tag::jaxen-rule-1[]
    @CacheableRule
    abstract class JaxenDependenciesRule implements ComponentMetadataRule {
        void execute(ComponentMetadataContext context) {
            context.details.allVariants {
                withDependencies {
                    removeAll { it.group in ["dom4j", "jdom", "xerces",  "maven-plugins", "xml-apis", "xom"] }
                }
            }
        }
    }
    // end::jaxen-rule-1[]
    
    // tag::jaxen-rule-2[]
    @CacheableRule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-jvm-test-suite/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmTestSuite.java

            // whether we need withDependencies anymore.
            //
            // The Kotlin plugin attempts to look at the declared dependencies to know if it needs to add its own dependencies.
            // We avoid triggering realization of getTestSuiteTestingFramework by only adding our dependencies just before
            // resolution.
            implementation.withDependencies(dependencySet ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 22:19:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationDefaultsIntegrationTest.groovy

    conf.incoming.beforeResolve { incoming ->
        calls << "sharedBeforeResolve"
    }
    conf.withDependencies { incoming ->
        calls << "sharedWithDependencies"
    }
    
    def confCopy = conf.copyRecursive()
    configurations.add(confCopy)
    
    conf.incoming.beforeResolve { incoming ->
        calls << "confBeforeResolve"
    }
    conf.withDependencies { incoming ->
        calls << "confWithDependencies"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:18:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ExtendingConfigurationsIntegrationTest.groovy

            then:
            output.contains("[foo-1.0.jar]\n[foo-1.0.jar]")
        }
    
        @Issue("https://github.com/gradle/gradle/issues/24234")
        def "configuration extensions can be changed in withDependencies during resolution"() {
            given:
            mavenRepo.module("org", "foo").publish()
            buildFile << """
                def attr = Attribute.of('org.example.attr', String)
    
                repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top