Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for withBuildCache (0.29 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy

                    mainClass = "Hello"
                }
            """
            withBuildCache().run "run"
            withBuildCache().run "clean"
            expect:
            withBuildCache().run "run"
        }
    
        def "tasks get cached when source code changes without changing the compiled output"() {
            when:
            withBuildCache().run "assemble"
            then:
            noneSkipped()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

        void taskIsNotCached(String task) {
            withBuildCache().run task
            executedAndNotSkipped(task)
            cleanBuildDir()
    
            withBuildCache().run task
            executedAndNotSkipped(task)
        }
    
        void taskIsCached(String task) {
            withBuildCache().run task
            executedAndNotSkipped(task)
            cleanBuildDir()
    
            withBuildCache().run task
            skipped(task)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheRequestHeadersIntegrationTest.groovy

            }), "/*", EnumSet.of(DispatcherType.REQUEST))
    
            settingsFile << withHttpBuildCacheServer()
    
            expect:
            withBuildCache().succeeds "compileJava"
    
            when:
            withBuildCache().run "clean"
            then:
            withBuildCache().succeeds "compileJava"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            """
            when:
            withBuildCache().run "unspecified"
            then:
            assertCachingDisabledFor NOT_ENABLED_FOR_TASK, "Caching has not been enabled for the task"
        }
    
        def "cacheability for a cacheable task is null"() {
            buildFile << """
                task cacheable(type: Cacheable) {}
            """
            when:
            withBuildCache().run "cacheable"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

                application {
                    mainClass = "Hello"
                }
            """
            withBuildCache().run "run"
            withBuildCache().run "clean"
            expect:
            withBuildCache().run "run"
        }
    
        def "tasks get cached when source code changes back to previous state"() {
            expect:
            withBuildCache().run "jar" assertTaskNotSkipped ":compileJava" assertTaskNotSkipped ":jar"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DispatchingBuildCacheIntegrationTest.groovy

        }
    
        def 'push to local'() {
            pushToLocal()
    
            when:
            withBuildCache().run cacheableTask
    
            then:
            executedAndNotSkipped(cacheableTask)
            cacheOperations.assertStoredToLocalCacheForTask(cacheableTask)
            remoteCache.empty
    
            when:
            pullOnly()
            withBuildCache().run 'clean', cacheableTask
    
            then:
            skipped(cacheableTask)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 15:17:04 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            when:
            withBuildCache().run(first, second)
            then:
            firstOutput.assertExists()
            secondOutput.assertExists()
            // Only the first task can be cached since the second detects the overlap
            assertTaskOutputCached(first)
            assertTaskOutputNotCached(second)
    
            when:
            cleanBuildDir()
            withBuildCache().run(first, second)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            when:
            withBuildCache().run(taskPath)
    
            then:
            cacheOperations.getCacheKeyForTaskOrNull(taskPath) == null
    
            when:
            withBuildCache().run("clean", "cacheable", "-PstoreInCache")
    
            then:
            listCacheFiles().any { it.name == cacheOperations.getCacheKeyForTask(taskPath) }
    
            when:
            withBuildCache().run("clean", "cacheable")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/CachedScalaCompileIntegrationTest.groovy

            def compiledScalaClass = scalaClassFile('UsesJava.class')
    
            when:
            withBuildCache().run ':compileJava', compilationTask
    
            then:
            compiledJavaClass.exists()
            compiledScalaClass.exists()
    
            when:
            withBuildCache().run ':clean', ':compileJava'
    
            then:
            skipped ':compileJava'
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoCachingIntegrationTest.groovy

                }
            """
            when:
            withBuildCache().run "jacocoTestReport"
            then:
            executedAndNotSkipped ":test", ":jacocoTestReport"
            reportFile.assertIsFile()
    
            when:
            succeeds "clean"
            then:
            reportFile.assertDoesNotExist()
    
            when:
            withBuildCache().run("integrationTest", "jacocoIntegrationTestReport")
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top