Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for notCompatibleWithConfigurationCache (0.72 sec)

  1. platforms/documentation/docs/src/samples/credentials-handling/publishing-credentials/kotlin/maven-repository-stub/src/main/kotlin/maven-repository-stub.gradle.kts

    tasks.withType<PublishToMavenRepository>().configureEach {
        notCompatibleWithConfigurationCache("Configures repository at execution time")
        doFirst {
            val address = com.example.MavenRepositoryStub.start()
            getRepository().setUrl(address)
        }
        doLast {
            com.example.MavenRepositoryStub.stop()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 332 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/credentials-handling/publishing-credentials/groovy/maven-repository-stub/src/main/groovy/maven-repository-stub.gradle

    tasks.withType(PublishToMavenRepository).configureEach {
        notCompatibleWithConfigurationCache("Configures repository at execution time")
        doFirst {
            def address = com.example.MavenRepositoryStub.start()
            getRepository().setUrl(address)
        }
        doLast {
            com.example.MavenRepositoryStub.stop()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 330 bytes
    - Viewed (0)
  3. 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)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/dependencyLocking-lockingAllConfigurations/groovy/build.gradle

    plugins {
        id 'java'
    }
    
    // tag::locking-all[]
    dependencyLocking {
        lockAllConfigurations()
    }
    // end::locking-all[]
    
    // tag::resolve-all[]
    tasks.register('resolveAndLockAll') {
        notCompatibleWithConfigurationCache("Filters configurations at execution time")
        doFirst {
            assert gradle.startParameter.writeDependencyLocks : "$path must be run from the command line with the `--write-locks` flag"
        }
        doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 632 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/dependencyManagement/dependencyLocking-lockingAllConfigurations/kotlin/build.gradle.kts

    plugins {
        java
    }
    
    // tag::locking-all[]
    dependencyLocking {
        lockAllConfigurations()
    }
    // end::locking-all[]
    
    // tag::resolve-all[]
    tasks.register("resolveAndLockAll") {
        notCompatibleWithConfigurationCache("Filters configurations at execution time")
        doFirst {
            require(gradle.startParameter.isWriteDependencyLocks) { "$path must be run from the command line with the `--write-locks` flag" }
        }
        doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 637 bytes
    - Viewed (0)
  6. 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)
  7. build-logic/root-build/src/main/kotlin/gradlebuild.internal.cc-experiment.gradle.kts

            ) -> true
    
            else -> false
        }
    }
    
    gradle.taskGraph.whenReady {
        allTasks.filter(unsupportedTasksPredicate).forEach { task ->
            task.notCompatibleWithConfigurationCache("Task is not compatible with the configuration cache")
        }
    }
    
    
    fun String.startsWithAnyOf(vararg prefixes: String): Boolean =
        prefixes.any { prefix -> startsWith(prefix) }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 17:29:09 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. subprojects/diagnostics/src/main/java/org/gradle/api/reporting/dependents/DependentComponentsReport.java

    public abstract class DependentComponentsReport extends DefaultTask {
    
        private boolean showNonBuildable;
        private boolean showTestSuites;
        private List<String> components;
    
        {
            notCompatibleWithConfigurationCache("Requires access to the component model at execution time.");
        }
    
        /**
         * Should this include non-buildable components in the report?
         */
        @Console
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top