Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for notCompatibleWithConfigurationCache (0.4 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemsServiceIntegTest.groovy

                definition.severity == Severity.WARNING
            }
        }
    
        def "notCompatibleWithConfigurationCache task problems are reported as Advice"() {
            given:
            buildFile """
                task run {
                    notCompatibleWithConfigurationCache("because")
                    doLast {
                        println(project.name)
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummary.kt

    
    private
    const val maxCauses = 5
    
    
    internal
    enum class ProblemSeverity {
        Info,
        Failure,
    
        /**
         * A problem produced by a task marked as [notCompatibleWithConfigurationCache][Task.notCompatibleWithConfigurationCache].
         */
        Suppressed
    }
    
    
    /**
     * This class is thread-safe.
     */
    internal
    class ConfigurationCacheProblemsSummary(
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIncompatibleTasksIntegrationTest.groovy

            }
        }
    
        private addTasksWithoutProblems() {
            buildFile """
                tasks.register('declared') {
                    notCompatibleWithConfigurationCache("not really")
                    doLast {
                    }
                }
            """
        }
    
        private addTasksWithProblems(String brokenFieldValue = 'project.configurations') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskExecutionIntegrationTest.groovy

                    println("Materialized task \${task.name} from project \${task.project.name}")
                }
    
                tasks.register("offender") {
                    notCompatibleWithConfigurationCache("calls getProject")
                    // This task reaches out to other task at execution time and triggers its configuration.
                    doLast { task ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/initialization/ConfigurationCacheProblemsListener.kt

            // and that usage can be benign. This is especially important when the currently running task is
            // marked as `notCompatibleWithConfigurationCache` - attributing the error to `task` will cause
            // the build to fail when it really shouldn't.
            val contextTask = runningTask ?: task
            val isExecutingOtherTask = contextTask != task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/TaskNodeCodec.kt

        val task = getProject(projectPath).tasks.createWithoutConstructor(taskName, taskClass, uniqueId) as TaskInternal
        if (incompatibleReason != null) {
            task.notCompatibleWithConfigurationCache(incompatibleReason)
        }
        return task
    }
    
    
    private
    inline fun IsolateContext.withTaskReferencesAllowed(action: () -> Unit) {
        val ownerTask = isolate.owner as IsolateOwners.OwnerTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

        public Optional<String> getReasonNotToTrackState() {
            return Optional.ofNullable(reasonNotToTrackState);
        }
    
        @Override
        public void notCompatibleWithConfigurationCache(String reason) {
            taskMutator.mutate("Task.notCompatibleWithConfigurationCache(String)", () -> {
                reasonIncompatibleWithConfigurationCache = reason;
            });
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/Task.java

         * could still cause the build to fail.
         * </p>
         *
         * @since 7.4
         */
        void notCompatibleWithConfigurationCache(String reason);
    
        /**
         * <p>Execute the task only if the given spec is satisfied. The spec will be evaluated at task execution time, not
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 17:25:12 UTC 2024
    - 31.6K bytes
    - Viewed (0)
Back to top