Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for withBuildCacheEnabled (0.54 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheConfigurationIntegrationTest.groovy

                    local {
                        directory = '$cacheDir'
                    }
                }
            """
    
            buildFile << customTaskCode()
    
            expect:
            executer.withBuildCacheEnabled()
            succeeds("customTask")
            !localBuildCache.empty
        }
    
        def "can enable with settings.gradle"() {
            settingsFile << """
                gradle.startParameter.buildCacheEnabled = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 19 20:09:35 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheConfigurationBuildOperationIntegrationTest.groovy

                        enabled = true
                        url = "$url"
                        push = $push
                        $credentials
                    }
                }
            """
            executer.withBuildCacheEnabled()
    
            when:
            succeeds("help")
    
            then:
            def result = result()
    
            result.remoteEnabled
            !result.localEnabled
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/FinalizeBuildCacheConfigurationBuildOperationIntegrationTest.groovy

                        enabled = true
                        directory = '${cacheDir.absoluteFile.toURI().toString()}'
                        push = true
                    }
                }
            """
            executer.withBuildCacheEnabled()
    
            when:
            succeeds("help")
    
            then:
            def result = result()
    
            result.enabled
            result.localEnabled
            !result.remoteEnabled
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileLineEndingSensitivityIntegrationTest.groovy

            writeJavaSourceWithUnixLineEndings()
    
            when:
            executer.withBuildCacheEnabled()
            succeeds compileTask
    
            then:
            executedAndNotSkipped compileTask
    
            when:
            writeJavaSourceWithWindowsLineEndings()
            succeeds "clean"
    
            and:
            executer.withBuildCacheEnabled()
            succeeds compileTask
    
            then:
            fromCache compileTask
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedImplementationIntegrationTest.groovy

                apply plugin: InMemoryBuildCachePlugin
            """
    
            when:
            executer.withBuildCacheEnabled()
            succeeds "compileJava", "--info"
    
            then:
            executed ":compileJava"
    
            expect:
            succeeds "clean"
    
            when:
            executer.withBuildCacheEnabled()
            succeeds "compileJava"
    
            then:
            skipped ":compileJava"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 20 12:09:58 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheCompositeConfigurationIntegrationTest.groovy

            def enablingCode = by == EnabledBy.PROGRAMMATIC ? """\ngradle.startParameter.buildCacheEnabled = true\n""" : ""
            if (by == EnabledBy.INVOCATION_SWITCH) {
                executer.beforeExecute {
                    withBuildCacheEnabled()
                }
            }
    
            def mainCache = new TestBuildCache(file("main-cache"))
            def buildSrcCache = new TestBuildCache(file("buildSrc-cache"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

        def localCache = new TestBuildCache(file("local-cache"))
        def cacheOperations = new BuildCacheOperationFixtures(executer, temporaryFolder)
    
        def setup() {
            executer.beforeExecute { withBuildCacheEnabled() }
            settingsFile << localCache.localCacheConfiguration()
        }
    
        def "cached origin metadata is correct"() {
            file("input.txt") << "data"
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheErrorIntegrationTest.groovy

            settingsFile << """
                buildCache {
                    remote(TestBuildCache)
                }
            """
            when:
            executer.withBuildCacheEnabled()
            fails("compileJava")
            then:
            failure.assertHasCause("Build cache type 'TestBuildCache' has not been registered.")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 12 13:13:02 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/outputorigin/BuildCacheOutputOriginIntegrationTest.groovy

            outputOrigin.originId(taskPath)
        }
    
        OriginMetadata origin(String taskPath) {
            outputOrigin.origin(taskPath)
        }
    
        def setup() {
            executer.beforeExecute {
                it.withBuildCacheEnabled()
            }
        }
    
        def "exposes origin build id when reusing cached outputs"() {
            given:
            buildScript """
                apply plugin: "base"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 14:10:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

            """
    
            settingsFile << localCache.localCacheConfiguration() << remoteCache.remoteCacheConfiguration()
    
            executer.beforeExecute { it.withBuildCacheEnabled() }
        }
    
        def "remote loads are cached locally"() {
            given:
            settingsFile << """
                buildCache { local.push = false }
            """
    
            when:
            succeeds("t")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top