Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for configureEach (1.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            when:
            container.configureEach(method)
            then:
            noExceptionThrown()
    
            when:
            container.withType(container.type).configureEach(method)
            then:
            noExceptionThrown()
    
            when:
            container.matching({ it in container.type }).configureEach(method)
            then:
            noExceptionThrown()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    ```kotlin
    tasks.withType<AbstractCompile>().configureEach {
        // ...
    }
    ```
    
    needs to be changed to
    ```kotlin
    tasks.withType<AbstractCompile>().configureEach {
        // ...
    }
    tasks.withType<KotlinCompile>().configureEach {
        // ...
    }
    ```
    
    ==== Upgrade to Groovy 3.0.13
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    ----
    =====
    ====
    
    Clients should configure the `war` task  directly.
    Also, link:{javadocPath}/org/gradle/api/DomainObjectCollection.html#withType-java.lang.Class-[tasks.withType(War.class).configureEach(...)] can be used to configure each task of type `War`.
    
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    plugins {
        id("war")
    }
    
    tasks.war {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

            buildFile << """
                class CounterConventionPlugin implements Plugin<Project> {
                    void apply(Project project) {
                        project.gradle.sharedServices.registrations.configureEach {
                            if (parameters instanceof CountingParams) {
                                parameters.initial = parameters.initial.get() + 5
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy

            }
        }
    
        def "reports problems from deferred task configuration action block"() {
            file("script.gradle") << """
                tasks.configureEach {
                    System.getProperty("PROP")
                    gradle.buildFinished { }
                }
            """
            buildFile << """
                apply from: 'script.gradle'
                task ok
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            when:
            buildFile << """
                tasks.withType(Copy).configureEach {
                    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
                }
            """
            run 'copy'
    
            then:
            file('dest').assertHasDescendants('path/file.txt')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
Back to top