Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CustomStatusRule (0.23 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-metadataRule/kotlin/build.gradle.kts

    dependencies {
        components {
            all<IvyComponentRule>()
            all<MavenComponentRule>()
        }
    }
    
    // tag::custom-status-scheme[]
    @CacheableRule
    abstract class CustomStatusRule : ComponentMetadataRule {
        override fun execute(context: ComponentMetadataContext) {
            context.details.statusScheme = listOf("nightly", "milestone", "rc", "release")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-metadataRule/groovy/build.gradle

    dependencies {
        components {
            all(IvyComponentRule)
            all(MavenComponentRule)
        }
    }
    
    
    // tag::custom-status-scheme[]
    @CacheableRule
    abstract class CustomStatusRule implements ComponentMetadataRule {
        void execute(ComponentMetadataContext context) {
            context.details.statusScheme = ["nightly", "milestone", "rc", "release"]
            if (context.details.status == "integration") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.2K bytes
    - Viewed (1)
Back to top