Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 155 for configureEach (0.2 sec)

  1. platforms/native/language-native/src/main/java/org/gradle/language/internal/DefaultBinaryCollection.java

        }
    
        @Override
        public void configureEach(Action<? super T> action) {
            if (state != State.Collecting) {
                throw new IllegalStateException("Cannot add actions to this collection as it has already been realized.");
            }
            configureActions = configureActions.add(action);
        }
    
        @Override
        public <S> void configureEach(Class<S> type, Action<? super S> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/groovy/compilationAvoidance/kotlin/ast-transformation-consumer/build.gradle.kts

    }
    
    // tag::groovy-compilation-avoidance[]
    val astTransformation by configurations.creating
    dependencies {
        astTransformation(project(":ast-transformation"))
    }
    tasks.withType<GroovyCompile>().configureEach {
        astTransformationClasspath.from(astTransformation)
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 385 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/java/jvm-multi-project-with-toolchains/groovy/buildSrc/src/main/groovy/myproject.java-conventions.gradle

    repositories {
        mavenCentral()
    }
    
    // tag::toolchain[]
    java {
        toolchain {
            languageVersion = JavaLanguageVersion.of(11)
        }
    }
    // end::toolchain[]
    
    
    tasks.withType(Test).configureEach {
        useJUnitPlatform()
    }
    
    dependencies {
        testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 439 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/junitplatform-tagging/kotlin/build.gradle.kts

        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
    - 369 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testing/junitplatform-engine/groovy/build.gradle

        testCompileOnly 'junit:junit:4.13'
        testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    }
    
    // tag::filter-engine[]
    tasks.withType(Test).configureEach {
        useJUnitPlatform {
            includeEngines 'junit-vintage'
            // excludeEngines 'junit-jupiter'
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 507 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/build-organization/sharing-convention-plugins-with-build-logic/groovy/build-conventions/src/main/groovy/myproject.java-conventions.gradle

    plugins {
        id 'java'
    }
    
    repositories {
        mavenCentral()
    }
    
    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs << "-Xlint:deprecation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 159 bytes
    - Viewed (0)
  7. platforms/jvm/language-java/build.gradle.kts

        crossVersionTestDistributionRuntimeOnly(project(":distributions-basics"))
    }
    
    tasks.withType<Test>().configureEach {
        if (!javaVersion.isJava9Compatible) {
            classpath += javaLauncher.get().metadata.installationPath.files("lib/tools.jar")
        }
    }
    
    tasks.withType<JavaCompile>().configureEach {
        options.release = null
        sourceCompatibility = "8"
        targetCompatibility = "8"
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/DependencyResolutionFromTaskContextIntegrationTest.groovy

                    configurations {
                        myconf
                    }
                    tasks.withType(GoodTask).configureEach {
                        outputFile = layout.buildDirectory.file("good.txt")
                    }
                    tasks.withType(BadTask).configureEach {
                        outputFile = layout.buildDirectory.file("bad.txt")
                    }
                    tasks.register("foo", GoodTask)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ForceScalaCompileIntegrationTest.groovy

    plugins {
        id 'scala'
    }
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        implementation 'org.scala-lang:scala-library:2.12.18'
    }
    
    tasks.withType(ScalaCompile).configureEach {
        scalaCompileOptions.force = true
    }
    
    """
            file('src/main/scala/org/test/Person.scala') << """
    package org.test
    
    class Person(name: String) {
        def getName(): String = name
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ParallelStaleOutputIntegrationTest.groovy

                    configurations {
                        myconf
                    }
                    tasks.withType(GoodTask).configureEach {
                        outputFile = layout.buildDirectory.file("good.txt")
                    }
                    tasks.withType(BadTask).configureEach {
                        outputFile = layout.buildDirectory.file("bad.txt")
                    }
                    tasks.register("foo", GoodTask)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top