Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ComponentMetadataRule (0.24 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/DependenciesAttributesIntegrationTest.groovy

                }
                'org:directB:1.0'()
            }
    
            buildFile << """
                // this is actually the rules that we want to test
                class ModifyDependencyRule implements ComponentMetadataRule {
                    Attribute attribute
    
                    @javax.inject.Inject
                    ModifyDependencyRule(Attribute attribute) {
                        this.attribute = attribute
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 02:13:52 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/alignment/AlignmentIntegrationTest.groovy

                    conf 'org:databind:2.7.9'
                    conf 'org:kt:2.9.4.1'
    
                    components.all(DeclarePlatform)
                }
    
                class DeclarePlatform implements ComponentMetadataRule {
                    void execute(ComponentMetadataContext ctx) {
                        ctx.details.with {
                            belongsTo("org:platform:\${id.version}", false)
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 59.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/suppliers/DynamicRevisionRemoteResolveWithMetadataSupplierIntegrationTest.groovy

            given:
            def supplierInteractions = withPerVersionStatusSupplier()
    
            buildFile << """
                class VerifyRule implements ComponentMetadataRule {
                    @Override
                    void execute(ComponentMetadataContext context) {
                        def details = context.details
                        if (details.id.version == '1.1') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 11:46:17 UTC 2024
    - 49K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    [.multi-language-sample]
    ======
    .build-logic/src/main/kotlin/my-plugin.gradle.kts
    [source,kotlin]
    ----
    @CacheableRule
    abstract class AddDependenciesRule @Inject constructor(val dependencies: List<String>) : ComponentMetadataRule {
        override fun execute(context: ComponentMetadataContext) {
            listOf("compile", "runtime").forEach { base ->
                context.details.withVariant(base) {
                    withDependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionConflictResolutionIntegrationTest.groovy

                    conf 'org.test:root2:1.0'
                    conf 'org.test:root3:1.0'
    
                    components.all(AlignGroup.class)
                }
    
                class AlignGroup implements ComponentMetadataRule {
                    void execute(ComponentMetadataContext ctx) {
                        ctx.details.with { it ->
                            if (it.getId().getGroup().startsWith("org.aligned")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top