Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for configureEach (0.31 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractQueryDomainObjectContainerIntegrationTest.groovy

    abstract class AbstractQueryDomainObjectContainerIntegrationTest extends AbstractDomainObjectContainerIntegrationTest {
        def "can execute query method #queryMethod.key from configureEach"() {
            buildFile << """
                testContainer.configureEach {
                    ${queryMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            succeeds "help"
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/java/preview/groovy/build.gradle

    plugins {
        id 'java'
    }
    
    // tag::enabling-feature-preview[]
    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs += "--enable-preview"
    }
    
    tasks.withType(Test).configureEach {
        jvmArgs += "--enable-preview"
    }
    
    tasks.withType(JavaExec).configureEach {
        jvmArgs += "--enable-preview"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 342 bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/StrictCompileExtension.kt

            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-deprecation")
            }
        }
    
        fun ignoreRawTypes() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-rawtypes")
            }
        }
    
        fun ignoreAnnotationProcessing() {
            tasks.withType<JavaCompile>().configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/java/preview/kotlin/build.gradle.kts

    plugins {
        java
    }
    
    // tag::enabling-feature-preview[]
    tasks.withType<JavaCompile>().configureEach {
        options.compilerArgs.add("--enable-preview")
    }
    
    tasks.withType<Test>().configureEach {
        jvmArgs("--enable-preview")
    }
    
    tasks.withType<JavaExec>().configureEach {
        jvmArgs("--enable-preview")
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 341 bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy

                def actionExecutionCount = [:].withDefault { 0 }
    
                class A extends DefaultTask {}
    
                tasks.withType(A).configureEach {
                    actionExecutionCount.a1++
                }
    
                tasks.withType(A).configureEach {
                    actionExecutionCount.a2++
                }
    
                def a = tasks.register("a", A) {
                    actionExecutionCount.a3++
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. build.gradle.kts

    subprojects {
      plugins.withId("org.jetbrains.kotlin.jvm") {
        kotlinExtension.sourceSets.configureEach {
          languageSettings.optIn("okhttp3.ExperimentalOkHttpApi")
        }
      }
      plugins.withId("org.jetbrains.kotlin.android") {
        kotlinExtension.sourceSets.configureEach {
          languageSettings.optIn("okhttp3.ExperimentalOkHttpApi")
        }
      }
    }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:32:42 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/performance/parallelTestExecution/groovy/build.gradle

    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
    - 976 bytes
    - Viewed (0)
  8. platforms/jvm/java-compiler-plugin/build.gradle.kts

    }
    
    description = "A Java compiler plugin used by Gradle's incremental compiler"
    
    tasks.withType<JavaCompile>().configureEach {
        options.release = null
        sourceCompatibility = "8"
        targetCompatibility = "8"
    }
    
    tasks.withType<Test>().configureEach {
        if (!javaVersion.isJava9Compatible) {
            classpath += javaLauncher.get().metadata.installationPath.files("lib/tools.jar")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 460 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/swift/basic/kotlin/build.gradle.kts

    tasks.withType(SwiftCompile::class.java).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::class.java) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/MutationFailureFromConfigureEachDomainObjectContainerIntegrationTest.groovy

    abstract class MutationFailureFromConfigureEachDomainObjectContainerIntegrationTest extends AbstractDomainObjectContainerIntegrationTest {
        def "cannot execute mutation method #mutationMethod.key from configureEach"() {
            buildFile << """
                testContainer.configureEach {
                    ${mutationMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            fails "help"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top