Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 235 for configureEach (0.33 sec)

  1. build-logic/uber-plugins/src/main/kotlin/gradlebuild.kotlin-library.gradle.kts

            associateWith(target.compilations["main"])
            associateWith(target.compilations["testFixtures"])
        }
    }
    
    tasks {
        withType<KotlinCompile>().configureEach {
            configureKotlinCompilerForGradleBuild()
        }
    
        withType<Test>().configureEach {
            // enables stricter ClassLoaderScope behaviour
            systemProperty(
                DefaultClassLoaderScope.STRICT_MODE_PROPERTY,
                true
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 13:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/java/jvm-multi-project-with-toolchains/groovy/list/build.gradle

    plugins {
        id 'myproject.java-conventions'
        id 'java-library'
    }
    
    // tag::customToolchain[]
    tasks.withType(JavaCompile).configureEach {
        javaCompiler = javaToolchains.compilerFor {
            languageVersion = JavaLanguageVersion.of(8)
        }
    }
    
    task('testsOn17', type: Test) {
        javaLauncher = javaToolchains.launcherFor {
            languageVersion = JavaLanguageVersion.of(17)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 417 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/scala/zinc/kotlin/build.gradle.kts

    }
    
    dependencies {
        implementation("commons-collections:commons-collections:3.2.2")
        testImplementation("junit:junit:4.13")
    }
    
    // tag::adjust-memory[]
    tasks.withType<ScalaCompile>().configureEach {
        scalaCompileOptions.forkOptions.apply {
            memoryMaximumSize = "1g"
            jvmArgs = listOf("-XX:MaxMetaspaceSize=512m")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 500 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/maven-publish/conditional-publishing/kotlin/build.gradle.kts

                name = "internal"
                url = uri(layout.buildDirectory.dir("repos/internal"))
            }
        }
    }
    // end::publishing[]
    
    // tag::task-config[]
    tasks.withType<PublishToMavenRepository>().configureEach {
        val predicate = provider {
            (repository == publishing.repositories["external"] &&
                publication == publishing.publications["binary"]) ||
            (repository == publishing.repositories["internal"] &&
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/testing/junitplatform-engine/kotlin/build.gradle.kts

        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
    - 510 bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/internal/DefaultJavaPluginExtension.java

                this.project = project;
            }
    
            @Override
            public void useCompileClasspathVersions() {
                sourceSets.configureEach(this::applyCompileClasspathConsistency);
                components.withType(JvmSoftwareComponentInternal.class).configureEach(JvmSoftwareComponentInternal::useCompileClasspathConsistency);
    
                if (!isJavaComponentPresent(project)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 19:59:45 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/codeQuality/codeQuality/kotlin/build.gradle.kts

        "codenarc"("org.codehaus.groovy:groovy-all:3.0.3")
        "codenarc"("org.codenarc:CodeNarc:1.6.1")
    }
    // end::specify-groovy-version[]
    
    // tag::customize-checkstyle-memory[]
    tasks.withType<Checkstyle>().configureEach {
        minHeapSize = "200m"
        maxHeapSize = "1g"
    }
    // end::customize-checkstyle-memory[]
    
    // tag::enable-checkstyle-sarif-report[]
    checkstyle {
        toolVersion = "10.3.3"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 14 14:22:49 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryCppInteroperabilityIntegrationTest.groovy

                project(':hello') {
                    apply plugin: 'swift-library'
                    dependencies {
                        api project(':cppGreeter')
                    }
                    library.binaries.configureEach {
                        if (targetMachine.operatingSystemFamily.macOs) {
                            linkTask.get().linkerArgs.add("-lc++")
                        } else if (targetMachine.operatingSystemFamily.linux) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/buildEnvironment/javaCompileOptions/kotlin/build.gradle.kts

    plugins {
        java
    }
    
    tasks.withType<JavaCompile>().configureEach {
        options.compilerArgs = listOf("-Xdoclint:none", "-Xlint:none", "-nowarn")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 148 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/tasks/accessUsingType/groovy/build.gradle

    tasks.withType(Tar).configureEach {
        enabled = false
    }
    
    tasks.register('test') {
        dependsOn tasks.withType(Copy)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 121 bytes
    - Viewed (0)
Back to top