Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 157 for Cacheable (0.18 sec)

  1. platforms/documentation/docs/src/docs/userguide/img/performance/timeline-not-cacheable.png

    timeline-not-cacheable.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 77.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/img/performance/task-execution-cacheable.png

    task-execution-cacheable.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 87.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            when:
            withBuildCache().run("clean", "cacheable", "-PstoreInCache")
    
            then:
            listCacheFiles().any { it.name == cacheOperations.getCacheKeyForTask(taskPath) }
    
            when:
            withBuildCache().run("clean", "cacheable")
    
            then:
            skipped ":cacheable"
        }
    
        def "task is cacheable after previous failure"() {
            buildFile << """
                task foo {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/TaskClassInfo.java

        private final boolean cacheable;
        private final Optional<String> reasonNotToTrackState;
    
        public TaskClassInfo(ImmutableList<TaskActionFactory> taskActionFactories, boolean cacheable, Optional<String> reasonNotToTrackState) {
            this.taskActionFactories = taskActionFactories;
            this.cacheable = cacheable;
            this.reasonNotToTrackState = reasonNotToTrackState;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 18 14:40:02 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            buildFile """
                task cacheable(type: Cacheable)
                task cacheableWithOverlap(type: Cacheable) {
                    outputFile = cacheable.outputFile
                }
            """
            when:
            withBuildCache().run "cacheable", "cacheableWithOverlap"
            then:
            assertCachingDisabledFor null, null, ":cacheable"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCacheIntegrationTest.groovy

            """
            file("input").text = "input file"
    
            when:
            def result = runner('cacheable').build()
    
            then:
            result.tasks.collect { it.path } == [':cacheable']
            result.taskPaths(SUCCESS) == [':cacheable']
            result.taskPaths(SKIPPED).empty
            result.taskPaths(UP_TO_DATE).empty
            result.taskPaths(FAILED).empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/CacheableTaskProgressEventsCrossVersionSpec.groovy

    import org.gradle.util.GradleVersion
    
    class CacheableTaskProgressEventsCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransform.java

            this.requiresDependencies = instanceFactory.serviceInjectionTriggeredByAnnotation(InputArtifactDependencies.class);
            this.requiresInputChanges = instanceFactory.requiresService(InputChanges.class);
            this.cacheable = cacheable;
            this.artifactDirectorySensitivity = artifactDirectorySensitivity;
            this.dependenciesDirectorySensitivity = dependenciesDirectorySensitivity;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidateAction.java

                boolean cacheable = topLevelBean.isAnnotationPresent(cacheableAnnotationClass);
                DefaultTypeValidationContext validationContext = createValidationContext(topLevelBean, cacheable || enableStricterValidation);
                if (enableStricterValidation) {
                    validateCacheabilityAnnotationPresent(topLevelBean, cacheable, cacheableAnnotationClass, validationContext);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache.adoc

    Build logic can override this decision via the runtime API (see below).
    
    == Enable caching of non-cacheable tasks
    
    As we have seen, built-in tasks, or tasks provided by plugins, are cacheable if their class is annotated with the `Cacheable` annotation.
    But what if you want to make cacheable a task whose class is not cacheable?
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 11:30:10 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top