Skip to content

Commit

Permalink
Use Java 11 by default on JVM and Android (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz authored Oct 2, 2023
1 parent 1670b98 commit 7e5576f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ open class KorgeExtension(
//@JvmOverloads
//fun bundle(uri: String, baseName: String? = null) = bundles.bundle(uri, baseName)

val DEFAULT_JVM_TARGET = "1.8"
//val DEFAULT_JVM_TARGET = "1.6"
val DEFAULT_JVM_TARGET = GRADLE_JAVA_VERSION_STR
var jvmTarget: String = project.findProject("jvm.target")?.toString() ?: DEFAULT_JVM_TARGET
var androidLibrary: Boolean = project.findProperty("android.library") == "true"
var overwriteAndroidFiles: Boolean = project.findProperty("overwrite.android.files") == "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ const val ANDROID_DEFAULT_MIN_SDK = 21 // Android 5.0
const val ANDROID_DEFAULT_COMPILE_SDK = 33
const val ANDROID_DEFAULT_TARGET_SDK = 33

val ANDROID_JAVA_VERSION = JavaVersion.VERSION_1_8
//val ANDROID_JAVA_VERSION = JavaVersion.VERSION_11
//val ANDROID_JAVA_VERSION_STR = "1.8"
val ANDROID_JAVA_VERSION = JavaVersion.VERSION_11
val ANDROID_JAVA_VERSION_STR = ANDROID_JAVA_VERSION.toString()

val GRADLE_JAVA_VERSION_STR = "11"
Expand Down
6 changes: 0 additions & 6 deletions e2e/e2e-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ buildscript {

apply<KorgeGradlePlugin>()

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}

korge {
id = "com.sample.demo"

Expand Down

0 comments on commit 7e5576f

Please sign in to comment.