Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for CacheableTask (0.18 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/tasks/CacheableTask.java

     * <p>Only tasks that produce reproducible and relocatable output should be marked with {@code CacheableTask}.</p>
     *
     * <p>Caching for individual task instances can be enabled and disabled via {@link TaskOutputs#cacheIf(String, Spec)} or disabled via {@link TaskOutputs#doNotCacheIf(String, Spec)}.
     * Using these APIs takes precedence over the presence (or absence) of {@code @CacheableTask}.</p>
     *
     * @see DisableCachingByDefault
     *
     * @since 3.0
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 02 13:10:28 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DispatchingBuildCacheIntegrationTest.groovy

            when:
            withBuildCache().run cacheableTask
    
            then:
            executedAndNotSkipped(cacheableTask)
            cacheOperations.assertStoredToLocalCacheForTask(cacheableTask)
            remoteCache.empty
    
            when:
            pullOnly()
            withBuildCache().run 'clean', cacheableTask
    
            then:
            skipped(cacheableTask)
            cacheOperations.getPackOperationsForTask(cacheableTask).empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 15:17:04 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testKit/testKitFunctionalTestSpockBuildCache/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

        // tag::functional-test-build-cache[]
        def "cacheableTask is loaded from cache"() {
            given:
            buildFile << """
                plugins {
                    id 'org.gradle.sample.helloworld'
                }
            """
    
            when:
            def result = runner()
                .withArguments( '--build-cache', 'cacheableTask')
                .build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/core/BuildScanAutoApplyClasspathIntegrationTest.groovy

            executedAndNotSkipped(":cacheableTask")
    
            when:
            succeeds "cacheableTask", "--scan"
    
            then:
            transitivePluginFixture.appliedOnce(output)
            assertNotAutoApplied(output)
            skipped(":cacheableTask")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 18:43:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testKit/testKitFunctionalTestSpockBuildCache/groovy/src/main/groovy/org/gradle/sample/MyCacheableTask.groovy

    package org.gradle.sample
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.CacheableTask
    import org.gradle.api.tasks.InputFile
    import org.gradle.api.tasks.OutputFile
    import org.gradle.api.tasks.PathSensitive
    import org.gradle.api.tasks.PathSensitivity
    import org.gradle.api.tasks.TaskAction
    
    @CacheableTask
    class MyCacheableTask extends DefaultTask {
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
        File inputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 567 bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

                }
    
                buildCache {
                    registerBuildCacheService(${className}, ${className}ServiceFactory)
                }
            """
        }
    
        String cacheableTask() {
            """
                @CacheableTask
                class CustomTask extends DefaultTask {
    
                    @Input
                    String val = "foo"
    
                    @Input
                    List<String> paths = []
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/main/java/org/gradle/language/c/tasks/CCompile.java

    import org.gradle.api.Incubating;
    import org.gradle.api.tasks.CacheableTask;
    import org.gradle.language.c.internal.DefaultCCompileSpec;
    import org.gradle.language.nativeplatform.tasks.AbstractNativeSourceCompileTask;
    import org.gradle.nativeplatform.toolchain.internal.NativeCompileSpec;
    
    /**
     * Compiles C source files into object files.
     */
    @Incubating
    @CacheableTask
    public abstract class CCompile extends AbstractNativeSourceCompileTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/SmokeTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.integrationtests.tasks
    
    import org.gradle.api.tasks.CacheableTask
    
    
    /**
     * A test that verifies Gradle can be used with popular third party plugins.
     */
    @CacheableTask
    abstract class SmokeTest : DistributionTest() {
        override val prefix = "smoke"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 889 bytes
    - Viewed (0)
  9. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/tasks/IncubatingApiReportTask.kt

    import org.gradle.api.DefaultTask
    import org.gradle.api.file.ConfigurableFileCollection
    import org.gradle.api.file.RegularFileProperty
    import org.gradle.api.provider.Property
    import org.gradle.api.tasks.CacheableTask
    import org.gradle.api.tasks.Input
    import org.gradle.api.tasks.InputFile
    import org.gradle.api.tasks.InputFiles
    import org.gradle.api.tasks.OutputFile
    import org.gradle.api.tasks.PathSensitive
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 30 09:32:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/annotations/CacheableTaskTypeAnnotationHandler.java

    import org.gradle.api.Task;
    import org.gradle.api.tasks.CacheableTask;
    import org.gradle.internal.properties.annotations.AbstractTypeAnnotationHandler;
    import org.gradle.internal.reflect.validation.TypeValidationContext;
    
    public class CacheableTaskTypeAnnotationHandler extends AbstractTypeAnnotationHandler {
        public CacheableTaskTypeAnnotationHandler() {
            super(CacheableTask.class);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 15 21:15:59 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top