Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for notCompatibleWithConfigurationCache (0.28 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/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)
  4. 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)
Back to top