Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 235 for configureEach (0.63 sec)

  1. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonProcessFailureIntegrationTest.groovy

            given:
            buildFile << """
                plugins {
                    id 'java'
                }
    
                ${dependsOnPidCapturingAnnotationProcessor}
    
                tasks.withType(JavaCompile).configureEach {
                    options.fork = true
                }
            """
            file('src/main/java/Foo.java') << """
                @WorkerPid
                public class Foo {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 18:43:14 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. analysis/analysis-api/build.gradle.kts

        api(libs.guava)
    }
    
    kotlin {
        explicitApi()
    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
    }
    
    testsJar()
    
    projectTest {
        workingDir = rootDir
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginCrossVersionSmokeTest.kt

            withBuildScriptIn("buildSrc", scriptWithKotlinDslPlugin(oldestSupportedKotlinDslPluginVersion)).appendText(
                """
                tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
                    kotlinOptions.freeCompilerArgs += "-Xskip-metadata-version-check"
                }
                """
            )
            withFile("buildSrc/src/main/kotlin/some.gradle.kts", """println("some!")""")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. build-logic/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

    val signArtifacts: Boolean = !pgpSigningKey.orNull.isNullOrEmpty()
    
    tasks.withType<Sign>().configureEach { isEnabled = signArtifacts }
    
    signing {
        useInMemoryPgpKeys(pgpSigningKey.orNull, pgpSigningPassPhrase.orNull)
        publishing.publications.configureEach {
            if (signArtifacts) {
                signing.sign(this)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/groovy/incrementalCompilation/groovy/buildSrc/src/main/groovy/myproject.groovy-conventions.gradle

    plugins {
        id 'groovy'
    }
    
    dependencies {
        implementation localGroovy()
    }
    
    // tag::enable-groovy-incremental[]
    tasks.withType(GroovyCompile).configureEach {
        options.incremental = true
        options.incrementalAfterFailure = true
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 274 bytes
    - Viewed (0)
  6. platforms/jvm/plugins-jvm-test-suite/src/main/java/org/gradle/api/plugins/JvmTestSuitePlugin.java

            final ExtensiblePolymorphicDomainObjectContainer<TestSuite> testSuites = testing.getSuites();
    
            testSuites.withType(JvmTestSuite.class).configureEach(suite -> {
                suite.getTargets().configureEach(target -> {
                    addTestResultsVariant(project, suite, target);
                });
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 04 21:08:13 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. 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)
  8. build-logic/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts

    val artifactoryUserName
        get() = findProperty("artifactoryUserName") as String?
    
    val artifactoryUserPassword
        get() = findProperty("artifactoryUserPassword") as String?
    
    tasks.withType<AbstractPublishToMaven>().configureEach {
        val noUpload = project.gradleProperty("noUpload")
        this.onlyIf { !noUpload.map { it == "true" }.orElse(false).get() }
        if (name.endsWith("ToRemoteRepository")) {
            failEarlyIfUrlOrCredentialsAreNotSet(this)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:58 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginExternalDTDOptionIntegrationTest.groovy

            then:
            assertFailedWithCheckstyleVerificationErrors()
        }
    
        def "can use enable_external_dtd_load feature on task"() {
            given:
            buildFile """
                tasks.withType(Checkstyle).configureEach {
                    enableExternalDtdLoad = true
                }
            """
    
            when:
            fails 'checkstyleMain'
    
            then:
            assertFailedWithCheckstyleVerificationErrors()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/swift/testFiltering/groovy/build.gradle

    plugins {
        id 'xctest'
    }
    
    // tag::test-filtering[]
    xctest {
        binaries.configureEach {
            runTask.get().configure {
                // include all tests from test class
                filter.includeTestsMatching "SomeIntegTest.*" // or `"Testing.SomeIntegTest.*"` on macOS
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 319 bytes
    - Viewed (0)
Back to top