Skip to content

Commit

Permalink
Lower JVM target to 1.8 (#182)
Browse files Browse the repository at this point in the history
### What's done:
- Allows to use ktoml (at runtime) on older JVMs. Since Kotlin currently targets 1.8 IL, there's zero difference at compile or test time.
  • Loading branch information
saschpe committed Jan 27, 2023
1 parent 3e043a2 commit 9b9ce8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions ktoml-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ kotlin {
// building jvm task only on windows
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "11"
}
kotlinOptions.jvmTarget = "1.8"
}
}

Expand Down
4 changes: 1 addition & 3 deletions ktoml-file/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ kotlin {

jvm {
compilations.all {
kotlinOptions {
jvmTarget = "11"
}
kotlinOptions.jvmTarget = "1.8"
}
}

Expand Down

0 comments on commit 9b9ce8c

Please sign in to comment.