Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 740 for onlyIf (0.04 seconds)

  1. container-tests/build.gradle.kts

    val testJavaVersion = project.testJavaVersion
    
    tasks.withType<Test> {
      useJUnitPlatform()
      val isCi = providers.environmentVariable("CI")
      val containerTests = providers.gradleProperty("containerTests")
      onlyIf("By default not in CI") {
        !isCi.isPresent
          || (containerTests.isPresent && containerTests.get().toBoolean())
      }
    
      jvmArgs(
        "-Dokhttp.platform=$platform",
      )
    
      if (platform == "loom") {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 1.3K bytes
    - Click Count (1)
  2. okcurl/build.gradle.kts

    }
    
    tasks.shadowJar {
      mergeServiceFiles()
    }
    
    tasks.withType<Test> {
      val javaVersion = project.testJavaVersion
      onlyIf("native build requires Java 17") {
        javaVersion > 17
      }
    }
    
    apply(plugin = "org.graalvm.buildtools.native")
    
    configure<GraalVMExtension> {
      binaries {
        named("main") {
          imageName = "okcurl"
          mainClass = "okhttp3.curl.MainCommandLineKt"
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  3. build-logic/src/main/kotlin/okhttp.quality-conventions.gradle.kts

      }
    
      signatures = androidSignature + jvmSignature
      failWithoutSignatures = false
    }
    
    // Default to only published modules
    project.tasks.withType<AnimalSniffer> {
      val hasMavenPublish = project.extensions.findByType<MavenPublishBaseExtension>() != null
      onlyIf {
        hasMavenPublish
      }
    }
    
    dependencies {
      // Logic for signatures should be moved to the applying module or configured via extension
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  4. okhttp-osgi-tests/build.gradle.kts

    }
    
    dependencies {
      osgiTestDeploy(libs.eclipse.osgi)
      osgiTestDeploy(libs.kotlin.stdlib.osgi)
    }
    
    tasks.withType<Test> {
      dependsOn(copyOsgiTestDeployment)
      val javaVersion = project.testJavaVersion
      onlyIf("Tests require JDK 17") {
        javaVersion >= 17
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  5. build-logic/src/main/kotlin/BndBuildAction.kt

                target: String?,
              ) = "${jvmMainSourceSet.getTaskName(verb, target)}ForFakeMain"
            }
          sourceSets.add(mainSourceSet)
          project.tasks.named { it.endsWith("ForFakeMain") }.configureEach { onlyIf { false } }
    
          return mainSourceSet
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  6. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts

    val artifactoryUserPassword
        get() = project.providers.gradleProperty("artifactoryUserPassword").orNull
    
    tasks.withType<AbstractPublishToMaven>().configureEach {
        val noUpload = project.gradleProperty("noUpload")
        this.onlyIf { !noUpload.map { it == "true" }.orElse(false).get() }
        if (name.endsWith("ToRemoteRepository")) {
            failEarlyIfUrlOrCredentialsAreNotSet(this)
            // packageBuild task executes tests, so we must run after it
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Feb 06 07:41:19 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

            task.setGroup("documentation");
            task.dependsOn(extension.getUserManual().getStagedDocumentation());
            task.onlyIf(t -> !extension.getQuickFeedback().get());
    
            task.sources(patternSet -> patternSet.include("userguide_single.adoc"));
    
            // TODO: This breaks the provider
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 22:33:18 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  8. fastapi/param_functions.py

                The parameter is available only for compatibility.
                """
            ),
        ] = ...,
        *,
        default_factory: Annotated[
            Callable[[], Any] | None,
            Doc(
                """
                A callable to generate the default value.
    
                This doesn't affect `Path` parameters as the value is always required.
                The parameter is available only for compatibility.
                """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 68K bytes
    - Click Count (0)
  9. docs/en/docs/how-to/configure-swagger-ui.md

    ## JavaScript-only settings { #javascript-only-settings }
    
    Swagger UI also allows other configurations to be **JavaScript-only** objects (for example, JavaScript functions).
    
    FastAPI also includes these JavaScript-only `presets` settings:
    
    ```JavaScript
    presets: [
        SwaggerUIBundle.presets.apis,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Streams.java

       * otherwise returns an empty stream.
       */
      public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) {
        return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty();
      }
    
      /**
       * If a value is present in {@code optional}, returns a stream containing only that element,
       * otherwise returns an empty stream.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.8K bytes
    - Click Count (0)
Back to Top