Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for CacheableTask (0.27 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                import org.gradle.api.tasks.*;
                import java.util.Set;
                import java.util.Collections;
                import java.io.File;
                import java.nio.file.Path;
    
                @CacheableTask
                public abstract class MyTask extends DefaultTask {
                    @javax.inject.Inject
                    org.gradle.api.internal.file.FileResolver fileResolver;
    
                    @InputDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/troubleshooting/validation_problems.adoc

    This error indicates that you have annotated a type with `@CacheableTransform` on something that is not an artifact transform, or `@CacheableTask` on something which is not a `Task`.
    
    The solution is to remove the annotation.
    
    For tasks, the annotation to use is `@CacheableTask`.
    For artifact transforms, the annotation to use is `@CacheableTransform`
    
    [[missing_normalization_annotation]]
    == Missing normalization 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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            then:
            succeeds("customTask")
        }
    
        def "corrupted cache artifact metadata provides useful error message"() {
            when:
            buildFile << """
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @OutputDirectory File outputDir = new File(temporaryDir, 'output')
                    @TaskAction
                    void generate() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

    import org.gradle.api.internal.project.ProjectInternal
    import org.gradle.api.internal.project.ProjectStateRegistry
    import org.gradle.api.invocation.Gradle
    import org.gradle.api.provider.Property
    import org.gradle.api.tasks.CacheableTask
    import org.gradle.api.tasks.Classpath
    import org.gradle.api.tasks.IgnoreEmptyDirectories
    import org.gradle.api.tasks.Input
    import org.gradle.api.tasks.InputDirectory
    import org.gradle.api.tasks.InputFiles
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

        def setup() {
            def bytes = new byte[1024 * 1024]
            new Random().nextBytes(bytes)
            file("output.txt").bytes = bytes
    
            buildFile << """
                @CacheableTask
                abstract class CustomTask extends DefaultTask {
                    @OutputFile File outputFile = new File(temporaryDir, "output.txt")
                    @Input String run = project.findProperty("run") ?: ""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy

            noneSkipped()
        }
    
        def "order of resources on classpath does not affect how we calculate the cache key"() {
            buildFile << """
                apply plugin: 'base'
    
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @OutputFile File outputFile = new File(temporaryDir, "output.txt")
                    @Classpath FileCollection classpath = project.fileTree("resources")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

                    }
                }
                def evaluationCount = project.getGradle().getSharedServices().registerIfAbsent("evaluationCount", EvaluationCountBuildService) {}
    
                @CacheableTask
                abstract class CustomTask extends DefaultTask {
    
                    @Inject
                    abstract ProjectLayout getLayout()
    
                    @Internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                import org.gradle.api.tasks.*;
                import java.util.Set;
                import java.util.Collections;
                import java.io.File;
                import java.nio.file.Path;
    
                @CacheableTask
                public abstract class MyTask extends DefaultTask {
                    @javax.inject.Inject
                    org.gradle.api.internal.file.FileResolver fileResolver;
    
                    @InputDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

            outputContains("Value of input property 'nested.\$0.prop' has changed for task ':myTask'")
        }
    
        private static String taskWithNestedBeanFromCustomClassLoader() {
            """
                @CacheableTask
                class TaskWithNestedProperty extends DefaultTask  {
                    @Nested
                    Object bean
                    @TaskAction action() {
                        bean.output.text = bean.input.text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageChecker.groovy

                super(checker)
            }
    
            NotCacheableWithoutReason noReasonOnTask() {
                workType = "task"
                cacheableAnnotation = "@CacheableTask"
                otherAnnotations.add("@UntrackedTask(because = ...)")
                this
            }
    
            NotCacheableWithoutReason noReasonOnArtifactTransform() {
                workType = "transform action"
    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