Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getOrElse (0.07 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

                    getPackageIncludes().getOrElse(Collections.emptyList()),
                    getPackageExcludes().getOrElse(Collections.emptyList()),
                    getClassIncludes().getOrElse(Collections.emptyList()),
                    getClassExcludes().getOrElse(Collections.emptyList()),
                    getMethodIncludes().getOrElse(Collections.emptyList()),
                    getMethodExcludes().getOrElse(Collections.emptyList()),
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 26 10:58:32 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

        get() = gradleProperty(MAX_PARALLEL_FORKS).getOrElse("4").toInt()
    
    
    val Project.autoDownloadAndroidStudio: Boolean
        get() = propertyFromAnySource(AUTO_DOWNLOAD_ANDROID_STUDIO).getOrElse("false").toBoolean()
    
    
    val Project.runAndroidStudioInHeadlessMode: Boolean
        get() = propertyFromAnySource(RUN_ANDROID_STUDIO_IN_HEADLESS_MODE).getOrElse("false").toBoolean()
    
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 09 08:19:42 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. build-logic-commons/build-platform/build.gradle.kts

    val asmVersion = "9.7"
    // To try out better kotlin compilation avoidance and incremental compilation
    // with -Pkotlin.incremental.useClasspathSnapshot=true
    val kotlinVersion = providers.gradleProperty("buildKotlinVersion")
        .getOrElse(embeddedKotlinVersion)
    
    dependencies {
        constraints {
            api("org.gradle.guides:gradle-guides-plugin:0.23")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 29 21:53:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

                it.parentFile.mkdirs()
            }
            ReproduciblePropertiesWriter.store(
                Properties().apply {
                    put("commitId", commitId.getOrElse("HEAD"))
                    put("versionNumber", version.get())
                    put("baseVersion", baseVersion.get())
                    put("isSnapshot", snapshot.get().toString())
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    // Unacceptable
    String value
    if (!getSomeProperty().isPresent()) {
       value = "convention"
    } else {
       value = getSomeProperty().get()
    }
    
    // Also unacceptable
    String value = getSomeProperty().getOrElse("convention")
    
    // This should be always:
    String value = getSomeProperty().get()
    ```
    
    ## Status
    
    ACCEPTED
    
    ## Consequences
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 20:00:57 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top