Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for cacheChangingModulesFor (0.34 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyJvmLibraryArtifactResolutionIntegrationTest.groovy

        }
    }
    
    dependencies {
        components {
            all(ChangingRule)
        }
    }
    
    if (project.hasProperty('nocache')) {
        configurations.all {
            resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
        }
    }
    """
    
            when:
            module.ivy.expectGet()
            def sourceArtifact = module.getArtifact(classifier: "my-sources")
            sourceArtifact.expectGetMissing()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/MetadataArtifactResolveTestFixture.groovy

        }
    }
    
    dependencies {
        components {
            all(ChangingRule)
        }
    }
    
    if (project.hasProperty('nocache')) {
        configurations.all {
            resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
        }
    }
    """
        }
    
        MetadataArtifactResolveTestFixture requestComponent(String component) {
            this.requestedComponent = component
            this
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenPomPackagingResolveIntegrationTest.groovy

            and:
            buildWithDependencies("compile 'group:projectA:1.1-SNAPSHOT'")
            buildFile << """
    if (project.hasProperty('skipCache')) {
        configurations.compile.resolutionStrategy.cacheChangingModulesFor(0, 'seconds')
    }
    """
    
            and:
            snapshotA.metaData.expectGet()
            snapshotA.pom.expectGet()
            snapshotA.artifact.expectHeadMissing()
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/UnsupportedConfigurationMutationTest.groovy

            buildFile << """
                configurations { a }
                configurations.a.resolve()
                configurations.a.resolutionStrategy.cacheChangingModulesFor 0, "seconds"
            """
    
    
            when: fails()
            then: failure.assertHasCause("Cannot change resolution strategy of dependency configuration ':a' after it has been resolved")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:59:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/CachedMissingModulesIntegrationTest.groovy

            buildFile << """
    repositories {
        ivy { url "${repo1.uri}"}
        ivy { url "${repo2.uri}"}
    }
    configurations {
        missing
        all {
            resolutionStrategy.cacheChangingModulesFor(0, "seconds")
        }
    }
    dependencies {
        missing group: 'group', name: 'projectA', version: '1.2', changing: true
    }
    task showMissing {
        def missing = configurations.missing
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionFeaturesIntegrationTest.groovy

            taskTypeLogsInputFileCollectionContent()
            buildFile << """
                configurations {
                    implementation {
                        resolutionStrategy.cacheChangingModulesFor(4, ${TimeUnit.name}.HOURS)
                    }
                }
    
                repositories { maven { url = '${remoteRepo.uri}' } }
    
                dependencies {
                    implementation('thing:lib:1.3') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 33K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/optimizing-performance/performance.adoc

    repositories to find new releases. By default, Gradle only checks once every 24 hours.
    But you can change this programmatically with the following settings:
    
    * `cacheDynamicVersionsFor`
    * `cacheChangingModulesFor`
    
    If a build file or initialization script lowers these values, Gradle queries repositories more often.
    When you don't need the absolute latest release of a dependency every time you build, consider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 23 03:39:56 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

                    }
                    configurations.all {
                        resolutionStrategy.cacheDynamicVersionsFor(0, "seconds")
                        resolutionStrategy.cacheChangingModulesFor(0, "seconds")
                    }
                }
    
                project(':lib') {
                    dependencies {
                        compile("test:changing:1.2") { changing = true }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
Back to top