Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 106 for BuildCache (0.18 sec)

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

                gradle.rootProject {
                    tasks.register('verifyBuildCache') {
                        doLast {
                            def buildCache = services.get(BuildCacheConfiguration)
                            assert buildCache.remote instanceof AnotherBuildCache
                            assert buildCache.registrations.size() == 4
                        }
                    }
                }
            """
    
            expect:
    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. subprojects/core/src/main/java/org/gradle/caching/configuration/internal/DefaultBuildCacheConfiguration.java

        @Nullable
        @Override
        public BuildCache getRemote() {
            return remote;
        }
    
        @Override
        public void setRemote(@Nullable BuildCache remote) {
            this.remote = remote;
        }
    
        @Override
        public <T extends BuildCache> T remote(Class<T> type) {
            return remote(type, Actions.doNothing());
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 20 12:32:48 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/caching/internal/services/AbstractBuildCacheControllerFactory.java

            private final ImmutableSortedMap<String, String> config;
    
            private BuildCacheDescription(BuildCache buildCache, String type, ImmutableSortedMap<String, String> config) {
                this.className = GeneratedSubclasses.unpackType(buildCache).getName();
                this.push = buildCache.isPush();
                this.type = type;
                this.config = config;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 17:08:26 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

            def artifactFileCopy = file("artifact")
            // move it out of the local for us to use
            buildCache.getCacheEntry(initialPackOp.details.cacheKey.toString()).copyBytesTo(artifactFileCopy)
            buildCache.deleteCacheEntry(initialPackOp.details.cacheKey.toString())
            assert !buildCache.hasCacheEntry(initialPackOp.details.cacheKey.toString())
    
            when:
            settingsFile.text = ""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

            then:
            skipped ":compileJava"
        }
    
        def "credentials can be specified via DSL"() {
            httpBuildCacheServer.withBasicAuth("user", "pass")
            settingsFile << """
                buildCache {
                    remote.credentials {
                        username = "user"
                        password = "pass"
                    }
                }
            """
    
            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. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache.adoc

    .Custom cacheable BundleTask
    ====
    include::sample[dir="snippets/buildCache/cacheable-bundle-task/kotlin",files="build.gradle.kts[tags=bundle-task]"]
    include::sample[dir="snippets/buildCache/cacheable-bundle-task/groovy",files="build.gradle[tags=bundle-task]"]
    ====
    - (1) Add `@CacheableTask` to enable caching for the task.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 11:30:10 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/buildCache/configure-built-in-caches/kotlin/settings.gradle.kts

    rootProject.name = "configure-built-in-caches"
    // tag::configure-directory-build-cache[]
    buildCache {
        local {
            directory = File(rootDir, "build-cache")
        }
    }
    // end::configure-directory-build-cache[]
    
    // tag::configure-http-build-cache[]
    buildCache {
        remote<HttpBuildCache> {
            url = uri("https://example.com:8123/cache/")
            credentials {
                username = "build-cache-user"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 21:43:36 UTC 2024
    - 516 bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveIncrementalCachingStateStepTest.groovy

        @Override
        ResolveIncrementalCachingStateStep<IncrementalChangesContext> createStep() {
            return new ResolveIncrementalCachingStateStep<>(buildCache, false, delegate)
        }
    
        def executionStateChanges = Mock(ExecutionStateChanges)
        def previousExecutionState = Mock(PreviousExecutionState)
    
        def "uses cache key from execution history when no changes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/caching/configuration/internal/DefaultBuildCacheServiceRegistration.java

    import org.gradle.caching.configuration.BuildCache;
    
    public class DefaultBuildCacheServiceRegistration implements BuildCacheServiceRegistration {
        private final Class<? extends BuildCacheServiceFactory<?>> factoryType;
        private final Class<? extends BuildCache> configurationType;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 12 13:13:02 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheConfigurationBuildOperationIntegrationTest.groovy

        def "remote build cache configuration is exposed"() {
            given:
            httpBuildCacheServer.start()
            def url = "${httpBuildCacheServer.uri}/"
            settingsFile << """
                buildCache {
                    local {
                        enabled = false
                    }
                    remote(org.gradle.caching.http.HttpBuildCache) {
                        enabled = true
                        url = "$url"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top