Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 228 for configureEach (0.26 sec)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.kotlin-dsl-gradle-plugin.gradle.kts

    dependencies {
        api(platform("gradlebuild:build-platform"))
        implementation("gradlebuild:gradle-plugin")
    
        testImplementation("org.junit.vintage:junit-vintage-engine")
    }
    
    tasks.withType<KotlinCompile>().configureEach {
        compilerOptions {
            allWarningsAsErrors = true
        }
    }
    
    ktlint {
        filter {
            exclude("gradle/kotlin/dsl/accessors/_*/**")
        }
    }
    
    tasks.runKtlintCheckOverKotlinScripts {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:32:00 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/cpp/basic/kotlin/build.gradle.kts

    application {
        dependencies {
            implementation(project(":common"))
        }
    }
    // end::cpp-dependency-mgmt[]
    
    // tag::cpp-compiler-options-all-variants[]
    tasks.withType(CppCompile::class.java).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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskCreationBuildOperationIntegrationTest.groovy

                    progress[0].details.message.startsWith("configureEach")
                }
    
            }
        }
    
        def "configure actions for lazy creation are nested in realization build op"() {
            buildFile << """
                tasks.configureEach {
                    logger.lifecycle 'configureEach'
                }
                def p = tasks.register('foo') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/GroovyDslFileContentGenerator.groovy

            tasks.withType(AbstractCompile).configureEach {
                options.fork = true
                options.incremental = true
                options.forkOptions.memoryInitialSize = compilerMemory
                options.forkOptions.memoryMaximumSize = compilerMemory
                options.forkOptions.jvmArgs.addAll(javaCompileJvmArgs)
            }
    
            tasks.withType(GroovyCompile).configureEach {
                groovyOptions.fork = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/PerformanceTestPlugin.kt

            tasks.withType<ProjectGeneratorTask>().configureEach {
                group = "Project setup"
            }
    
            tasks.withType<AbstractProjectGeneratorTask>().configureEach {
                project.performanceGeneratorMaxProjects?.let { maxProjects ->
                    setProjects(maxProjects)
                }
            }
    
            tasks.withType<JvmProjectGeneratorTask>().configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  6. 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)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

        "StringSplitter", // We are fine with using String.split() as is
    )
    
    project.plugins.withType<JavaBasePlugin> {
        project.extensions.getByName<SourceSetContainer>("sourceSets").configureEach {
            val extension = this.extensions.create<ErrorProneSourceSetExtension>("errorprone", project.objects.property<Boolean>())
            // Enable it only for the main source set by default, as incremental Groovy
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:36 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/groovy/compilationAvoidance/groovy/ast-transformation-consumer/build.gradle

        implementation localGroovy()
    }
    
    // tag::groovy-compilation-avoidance[]
    configurations { astTransformation }
    dependencies {
        astTransformation(project(":ast-transformation"))
    }
    tasks.withType(GroovyCompile).configureEach {
        astTransformationClasspath.from(configurations.astTransformation)
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 384 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/groovy/build.gradle

        mavenCentral()
    }
    
    dependencies {
        implementation 'org.junit.jupiter:junit-jupiter:5.7.1'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    }
    
    // tag::test-tags[]
    tasks.withType(Test).configureEach {
        useJUnitPlatform {
            includeTags 'fast'
            excludeTags 'slow'
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 368 bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts

    }
    
    tasks.withType<GroovyCompile>().configureEach {
        groovyOptions.apply {
            encoding = "utf-8"
            forkOptions.jvmArgs?.add("-XX:+HeapDumpOnOutOfMemoryError")
        }
        options.apply {
            isFork = true
            encoding = "utf-8"
            compilerArgs = mutableListOf("-Xlint:-options", "-Xlint:-path")
        }
    }
    
    tasks.withType<Test>().configureEach {
        if (JavaVersion.current().isJava9Compatible) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:32:00 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top