Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 157 for Cacheable (0.14 sec)

  1. platforms/jvm/war/src/integTest/groovy/org/gradle/api/tasks/bundling/WarTaskIntegrationTest.groovy

        dependsOn assertUnresolved
        classpath = configurations.conf
        destinationDirectory = buildDir
    }
    """
    
            then:
            succeeds "war"
        }
    
        def "can make war task cacheable with runtime api"() {
            given:
            def webXml = file('web.xml') << '<web/>'
            createDir('web-inf') {
                webinf1 {
                    file 'file1.txt'
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:20:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/DefaultRootComponentMetadataBuilder.java

                return localResolveStateFactory.stateFor(model, componentIdentifier, moduleVersionIdentifier, configurationsProvider, module.getStatus(), schema);
            } else {
                // Mark the state as 'ad hoc' and not cacheable
                return localResolveStateFactory.adHocStateFor(model, componentIdentifier, moduleVersionIdentifier, configurationsProvider, module.getStatus(), schema);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache_use_cases.adoc

    [WARNING]
    ====
    If you want to share task output from incremental builds, i.e. non-clean builds, you have to make sure that all cacheable tasks are properly configured and implemented to deal with stale output.
    There are for example annotation processors that do not clean up stale files in the corresponding classes/resources directories.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. platforms/software/publish/src/main/java/org/gradle/api/publish/tasks/GenerateModuleMetadata.java

    /**
     * Generates a Gradle metadata file to represent a published {@link org.gradle.api.component.SoftwareComponent} instance.
     *
     * @since 4.3
     */
    @DisableCachingByDefault(because = "Not made cacheable, yet")
    public abstract class GenerateModuleMetadata extends DefaultTask {
        private final Transient<Property<Publication>> publication;
        private final Transient<ListProperty<Publication>> publications;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 07:21:42 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/optimizing-performance/performance.adoc

    image::performance/task-execution-cacheable.png[title="A task oriented view of performance"]
    
    image::performance/timeline-not-cacheable.png[title="Timeline screen with 'not cacheable' tasks only"]
    
    Sort by task duration on the timeline screen to highlight tasks with great time saving potential.
    The build scan above shows that `:task1` and `:task3` could be improved and made cacheable
    and shows why Gradle didn't cache them.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 23 03:39:56 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/NativeProjectWithDepsGeneratorTask.groovy

    import org.gradle.work.DisableCachingByDefault
    
    /**
     * Generates a multi-project native build that has project dependencies and tests.
     */
    @DisableCachingByDefault(because = "Not made cacheable, yet")
    class NativeProjectWithDepsGeneratorTask extends TemplateProjectGeneratorTask {
    
        /** Represents a native library requirement */
        class Dependency {
            String project
            String library
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 11.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutorTest.groovy

            when:
            executor.execute(id, null, detailsToResult, onCacheMiss, cachePolicy)
    
            then:
            0 * _
        }
    
        def "executes the rule without caching if the rule is not cacheable"() {
            withNonCacheableToUpperCaseRule()
            def id = new Id('Alicia')
    
            when:
            execute(id)
    
            then:
            result.length == 6
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. platforms/software/signing/src/main/java/org/gradle/plugins/signing/Sign.java

     * tasks signatory and signature type.
     */
    @DisableCachingByDefault(because = "Not made cacheable, yet")
    public abstract class Sign extends DefaultTask implements SignatureSpec {
    
        private SignatureType signatureType;
        private Signatory signatory;
        private boolean required = true;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformValuesInjectionIntegrationTest.groovy

            failure.assertHasCause("Execution failed for MakeGreen: ${file('b/build/b.jar')}.")
            failure.assertHasCause("No service of type class ${File.name} available.")
        }
    
        def "task implementation cannot use cacheable transform annotation"() {
            expectReindentedValidationMessage()
            buildFile << """
                @CacheableTransform
                class MyTask extends DefaultTask {
                    @TaskAction void execute() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 11:12:24 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/artifact_transforms.adoc

    To enable the build cache for an artifact transform, add the `@link:{javadocPath}/org/gradle/api/artifacts/transform/CacheableTransform.html[CacheableTransform]` annotation on the action class.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 01:37:51 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top