Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for ComponentMetadataContext (0.38 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt

                   implementation("com.baulsupp:oksocial-output:4.19.0")
                }
                open class FixOksocialOutput: ComponentMetadataRule {
                   override fun execute(context: ComponentMetadataContext) = context.details.run {
                      if (id.group == "com.baulsupp" && id.name == "oksocial-output") {
                          allVariants {
                             withDependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:57:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                    final String attrValue
                    @Inject ChangingAttributeRule(String attrValue) { this.attrValue = attrValue }
                    void execute(ComponentMetadataContext context) {
                        context.details.allVariants {
                            attributes.attribute(Attribute.of("my.attribute.name", String), attrValue)
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/suppliers/DynamicRevisionRemoteResolveWithMetadataSupplierIntegrationTest.groovy

            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/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/verification/DependencyVerificationIntegrityCheckIntegTest.groovy

                abstract class SamplesVariantRule implements ComponentMetadataRule {
    
                    @Inject
                    abstract ObjectFactory getObjectFactory()
    
                    void execute(ComponentMetadataContext ctx) {
                        def variant = "samplessources"
                        def id = ctx.details.id
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:22 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    [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 {
                        dependencies.forEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionConflictResolutionIntegrationTest.groovy

                    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