Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for withType (0.04 sec)

  1. 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 {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Apr 11 20:15:47 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

                }
            }
        }
    }
    
    tasks.withType<JavaCompile>().configureEach {
        options.errorprone {
            disableWarningsInGeneratedCode = true
            allErrorsAsWarnings = true
        }
    }
    
    val codeQuality = tasks.register("codeQuality") {
        dependsOn(tasks.withType<CodeNarc>())
        dependsOn(tasks.withType<Checkstyle>())
        dependsOn(tasks.withType<ValidatePlugins>())
    }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Oct 01 11:57:43 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/JvmCompilation.kt

         */
        abstract val targetJvmVersion: Property<Int>
    
        fun Project.from(sourceSet: SourceSet) {
            associate(tasks.named<JavaCompile>(sourceSet.getCompileTaskName("java")))
            plugins.withType<GroovyBasePlugin>() {
                associate(tasks.named<GroovyCompile>(sourceSet.getCompileTaskName("groovy")))
            }
            plugins.withId("org.jetbrains.kotlin.jvm") {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Sep 19 05:45:14 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.private-javadoc.gradle.kts

    pluginManager.withPlugin("gradlebuild.code-quality") {
        tasks {
            named("codeQuality") {
                dependsOn(tasks.withType<Javadoc>())
            }
        }
    }
    
    tasks.withType<Javadoc>().configureEach {
        assert(name != "javadocAll") // This plugin should not be applied to the :docs project.
    
        onlyIf("Do not run the task if there are no java sources") {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Aug 20 14:11:17 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. build.gradle.kts

      }
    
      // https://publicobject.com/2023/04/16/read-a-project-file-in-a-kotlin-multiplatform-test/
      tasks.withType<Test>().configureEach {
        environment("OKHTTP_ROOT", rootDir)
      }
      tasks.withType<KotlinJvmTest>().configureEach {
        environment("OKHTTP_ROOT", rootDir)
      }
    
      tasks.withType<JavaCompile> {
        if (name.contains("Java9")) {
          sourceCompatibility = "9"
          targetCompatibility = "9"
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 11.5K bytes
    - Viewed (1)
  6. okhttp/build.gradle.kts

      if (alpnBootVersion != null) {
        val alpnBootJar = configurations.detachedConfiguration(
          dependencies.create("org.mortbay.jetty.alpn:alpn-boot:$alpnBootVersion")
        ).singleFile
        tasks.withType<Test> {
          jvmArgs("-Xbootclasspath/p:${alpnBootJar}")
        }
      }
    }
    
    android {
      compileSdk = 35
    
      namespace = "okhttp.okhttp3"
    
      defaultConfig {
        minSdk = 21
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/StrictCompileExtension.kt

        fun ignoreDeprecations() {
            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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.kotlin-dsl-gradle-plugin.gradle.kts

        implementation("gradlebuild:gradle-plugin")
    
        testImplementation("org.junit.vintage:junit-vintage-engine")
    
        testRuntimeOnly("org.junit.platform:junit-platform-launcher")
    }
    
    tasks.withType<KotlinCompile>().configureEach {
        compilerOptions {
            allWarningsAsErrors = true
        }
    }
    
    detekt {
        // overwrite the config file's location
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Nov 11 23:24:30 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild.update-versions.gradle.kts

    plugins {
        id("gradlebuild.module-identity")
    }
    
    tasks.named<UpdateDaemonJvm>("updateDaemonJvm") {
        languageVersion = JavaLanguageVersion.of(17)
    }
    
    tasks.withType<UpdateReleasedVersions>().configureEach {
        releasedVersionsFile = releasedVersionsFile()
        group = "Versioning"
    }
    
    tasks.register<UpdateReleasedVersions>("updateReleasedVersions") {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Oct 24 09:10:28 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. module-tests/build.gradle.kts

        requires("java.logging")
      }
      module("com.squareup.okio:okio", "okio") {
        exportAllPackages()
      }
    }
    
    val testJavaVersion = System.getProperty("test.java.version", "21").toInt()
    
    tasks.withType<Test> {
      useJUnitPlatform()
    
      enabled = testJavaVersion > 8
    
      javaLauncher.set(javaToolchains.launcherFor {
        languageVersion.set(JavaLanguageVersion.of(testJavaVersion))
      })
    }
    
    java {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 06:45:42 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top