Compile to jre 8 target (#11122)

* Allow Java 8 to run this seamlessly, because really, why not?
Resolves #11121
Resolves #11074

* Apparently

* Correct version-to-string
This commit is contained in:
Yair Morgenstern 2024-02-12 00:49:08 +02:00 committed by GitHub
parent 58318cb199
commit 6b9c98edc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ kotlin {
target { target {
compilations.all { compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.majorVersion kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
} }
} }
} }
java { java {
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_1_8
} }

View File

@ -17,12 +17,12 @@ kotlin {
target { target {
compilations.all { compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.majorVersion kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
} }
} }
} }
java { java {
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_1_8
} }
dependencies { dependencies {