Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 235 for configureEach (0.25 sec)

  1. platforms/documentation/docs/src/snippets/performance/parallelTestExecution/kotlin/build.gradle.kts

    plugins {
        id("java-library")
    }
    
    // tag::parallel-4[]
    // tag::parallel-calculated[]
    // tag::fork-every[]
    // tag::disable-reports[]
    tasks.withType<Test>().configureEach {
    // end::parallel-4[]
    // end::parallel-calculated[]
    // end::fork-every[]
    // end::disable-reports[]
    
    // tag::parallel-4[]
        maxParallelForks = 4
    // end::parallel-4[]
    
    // tag::parallel-calculated[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 995 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/buildCache/java-version-tracking/groovy/build.gradle

    plugins {
        id('java-library')
    }
    
    // tag::trackVendor[]
    tasks.withType(AbstractCompile).configureEach {
        inputs.property("java.vendor") {
            System.getProperty("java.vendor")
        }
    }
    
    tasks.withType(Test).configureEach {
        inputs.property("java.vendor") {
            System.getProperty("java.vendor")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 340 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/buildCache/java-version-tracking/kotlin/build.gradle.kts

    plugins {
        id("java-library")
    }
    
    // tag::trackVendor[]
    tasks.withType<AbstractCompile>().configureEach {
        inputs.property("java.vendor") {
            System.getProperty("java.vendor")
        }
    }
    
    tasks.withType<Test>().configureEach {
        inputs.property("java.vendor") {
            System.getProperty("java.vendor")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 344 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/swift/testReport/groovy/buildSrc/src/main/groovy/myproject.xctest-conventions.gradle

    // tag::test-report[]
    plugins {
        id 'xctest'
    }
    
    xctest {
        binaries.configureEach {
            runTask.get().configure {
                // Disable the test report for the individual test task
                reports.html.required = false
            }
        }
    }
    
    // Share the test report data to be aggregated for the whole project
    configurations {
        binaryTestResultsElements {
            canBeResolved = false
            attributes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 772 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/groovy/build.gradle

    java {
        registerFeature(gradle7.name) {
            usingSourceSet(gradle7)
            capability(project.group.toString(), project.name, project.version.toString()) // <1>
        }
    }
    
    configurations.configureEach {
        if (canBeConsumed && name.startsWith(gradle7.name))  {
            attributes {
                attribute(GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE, // <2>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 01:32:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/kotlin/build.gradle.kts

    java {
        registerFeature(gradle7.name) {
            usingSourceSet(gradle7)
            capability(project.group.toString(), project.name, project.version.toString()) // <1>
        }
    }
    
    configurations.configureEach {
        if (isCanBeConsumed && name.startsWith(gradle7.name))  {
            attributes {
                attribute(GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE, // <2>
                    objects.named("7.0"))
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 01:32:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/buildCache/conditional-action/groovy/build.gradle

        id('java-library')
    }
    
    // tag::conditionalAction[]
    if (System.getenv().containsKey("CI")) {
        tasks.withType(Test).configureEach {
            doFirst {
                println "Running test on CI"
            }
        }
    }
    // end::conditionalAction[]
    
    // tag::unconditionalAction[]
    tasks.withType(Test).configureEach {
        doFirst {
            if (System.getenv().containsKey("CI")) {
                println "Running test on CI"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 471 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/cpp/basic/groovy/build.gradle

    application {
        dependencies {
            implementation project(':common')
        }
    }
    // end::cpp-dependency-mgmt[]
    
    // tag::cpp-compiler-options-all-variants[]
    tasks.withType(CppCompile).configureEach {
        // Define a preprocessor macro for every binary
        macros.put("NDEBUG", null)
    
        // Define a compiler options
        compilerArgs.add '-W3'
    
        // Define toolchain-specific compiler options
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/TaskContainerIntegrationTest.groovy

        @Issue("https://github.com/gradle/gradle/issues/28347")
        def "filtering is lazy (`#filtering` + `#configAction`)"() {
            given:
            buildFile """
                tasks.configureEach { println("configured \$path") }
    
                tasks.$filtering.$configAction
    
                tasks.register("foo", Copy)
                tasks.register("bar", Delete)
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 07:46:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/swift/basic/groovy/build.gradle

    // tag::swift-compiler-options-all-variants[]
    tasks.withType(SwiftCompile).configureEach {
        // Define a preprocessor macro for every binary
        macros.add("NDEBUG")
    
        // Define a compiler options
        compilerArgs.add '-O'
    }
    // end::swift-compiler-options-all-variants[]
    
    // tag::swift-compiler-options-per-variants[]
    application {
        binaries.configureEach(SwiftStaticLibrary) {
            // Define a preprocessor macro for every binary
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top