Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Cacheable (0.21 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/CacheableTaskProgressEventsCrossVersionSpec.groovy

    import org.gradle.util.GradleVersion
    
    class CacheableTaskProgressEventsCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/CacheableTaskOutcomeCrossVersionSpec.groovy

    class CacheableTaskOutcomeCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/caching_android_projects.adoc

    == Instrumented test execution (i.e., Espresso tests)
    
    Android instrumented tests (`DeviceProviderInstrumentTestTask`), often referred to as “Espresso” tests, are also not cacheable.
    The Google Android team is also working to make such tests cacheable.
    Please see https://issuetracker.google.com/issues/115873051[this issue].
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 12:54:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/transform/IsolateTransformParametersCodec.kt

            val parameterObject: TransformParameters? = read()?.uncheckedCast()
            val implementationClass = readClass()
            val cacheable = readBoolean()
    
            return DefaultTransform.IsolateTransformParameters(
                parameterObject,
                implementationClass,
                cacheable,
                RootScriptDomainObjectContext.INSTANCE,
                parameterScheme.inspectionScheme.propertyWalker,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultWorkValidationContext.java

        @Override
        public InternalProblems getProblemsService() {
            return ProblemsProgressEventEmitterHolder.get();
        }
    
        @Override
        public TypeValidationContext forType(Class<?> type, boolean cacheable) {
            types.add(type);
            Supplier<Optional<PluginId>> pluginId = () -> typeOriginInspector.findPluginDefining(type);
            return new ProblemRecordingTypeValidationContext(type, pluginId) {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/DefaultTaskClassInfoStore.java

            return classInfos.get(type, aClass -> createTaskClassInfo(aClass.asSubclass(Task.class)));
        }
    
        private static TaskClassInfo createTaskClassInfo(Class<? extends Task> type) {
            boolean cacheable = type.isAnnotationPresent(CacheableTask.class);
            Optional<String> reasonNotToTrackState = Optional.ofNullable(type.getAnnotation(UntrackedTask.class))
                .map(UntrackedTask::because);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:47 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/KnownProblemIds.groovy

            'validation:type-validation:invalid-use-of-type-annotation' : 'Incorrect use of type annotation',
            'validation:type-validation:not-cacheable-without-reason' : 'Not cacheable without reason',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/MutableTransformExecution.java

            visitInputArtifact(visitor);
        }
    
        private String normalizeAbsolutePath(String path) {
            // We try to normalize the absolute path, so the workspace id is stable between machines for cacheable transforms.
            if (path.startsWith(rootProjectLocation)) {
                return path.substring(rootProjectLocation.length());
            }
            return path;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:14:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/task/ShowToolchainsTask.java

    import static org.gradle.internal.logging.text.StyledTextOutput.Style.Identifier;
    import static org.gradle.internal.logging.text.StyledTextOutput.Style.Normal;
    
    @UntrackedTask(because = "Produces only non-cacheable console output")
    public abstract class ShowToolchainsTask extends DefaultTask {
    
        private static final Comparator<JvmToolchainMetadata> TOOLCHAIN_COMPARATOR = Comparator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

            WorkValidationContext validationContext = node.getValidationContext();
            Class<?> taskType = GeneratedSubclasses.unpackType(node.getTask());
            // We don't know whether the task is cacheable or not, so we ignore cacheability problems for scheduling
            TypeValidationContext typeValidationContext = validationContext.forType(taskType, false);
            node.getTaskProperties().validateType(typeValidationContext);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top