Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fromTarget (0.04 seconds)

  1. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/JvmCompilation.kt

            kotlinCompile.configure {
                jvmTargetValidationMode.set(JvmTargetValidationMode.ERROR)
                compilerOptions {
                    jvmTarget = targetJvmVersion.map {
                        JvmTarget.fromTarget(if (it < 9) "1.${it}" else it.toString())
                    }
    
                    // TODO KT-49746: Use the DSL to set the release version
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Sep 19 05:45:14 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. build.gradle.kts

          // Depends on native-image-tools which is 17+, but avoids on Java 8 tests
          "17"
        } else {
          "1.8"
        }
    
      val projectJvmTarget = JvmTarget.fromTarget(javaVersionSetting)
      val projectJavaVersion = JavaVersion.toVersion(javaVersionSetting)
    
      tasks.withType<KotlinCompile> {
        compilerOptions {
          jvmTarget.set(projectJvmTarget)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 11.5K bytes
    - Click Count (1)
Back to Top