Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for invalid_use_of_cacheable_annotation (0.52 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeAnnotationHandler.java

                    .contextualLabel("is incorrectly annotated with @" + annotationType.getSimpleName())
                    .documentedAt(Documentation.userManual("validation_problems", "invalid_use_of_cacheable_annotation"))
                    .severity(Severity.ERROR)
                    .details(String.format("This annotation only makes sense on %s types", Arrays.stream(appliesOnlyTo)
                        .map(Class::getSimpleName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                error(invalidUseOfCacheableAnnotationConfig { type('MyTask.Options').invalidAnnotation('CacheableTask').onlyMakesSenseOn('Task') }, "validation_problems", "invalid_use_of_cacheable_annotation"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/validation/ValidationMessageCheckerTest.groovy

    Type 'SomeTransform' is incorrectly annotated with @CacheableTask.
    
    Reason: This annotation only makes sense on Task types.
    
    Possible solution: Remove the annotation.
    
    ${validationMessage("invalid_use_of_cacheable_annotation")}
    """
        }
    
        def "tests output of optionalOnPrimitive"() {
            when:
            render optionalOnPrimitive {
                type('Person').property('age')
                primitive(int.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/troubleshooting/validation_problems.adoc

    [[validation-problem]]
    = Dealing with validation problems
    
    This page summarizes the different task (or in general work) validation problems that Gradle reports and provides guidance for fixing them.
    
    [[invalid_use_of_cacheable_annotation]]
    == Invalid use of cacheable annotation
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageChecker.groovy

        InvalidUseOfCacheable invalidUseOfCacheableAnnotationConfig(@DelegatesTo(value = InvalidUseOfCacheable, strategy = Closure.DELEGATE_FIRST) Closure<?> spec) {
            def config = display(InvalidUseOfCacheable, 'invalid_use_of_cacheable_annotation', spec)
            config.description("is incorrectly annotated with @${config.invalidAnnotation}")
                .reason("This annotation only makes sense on ${config.correctTypes.join(', ')} types")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 42.1K bytes
    - Viewed (0)
Back to top