Skip to content

Commit

Permalink
feat: upgrade to JVM 21
Browse files Browse the repository at this point in the history
  • Loading branch information
jimirocks committed Nov 15, 2024
1 parent c7175a9 commit 6174795
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'

- name: Set up Gradle
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/loxone-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
ref: master
token: ${{ secrets.SMARTEON_GIT_TOKEN }}

- name: Setup JDK 17
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
overwrite-settings: false

Expand Down
8 changes: 1 addition & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,8 @@ detekt {
}

kotlin {
jvmToolchain(17)
jvmToolchain(21)
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
java {
targetCompatibility = JavaVersion.VERSION_11
}
}
withJava()

configurations.all {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kotlin = "1.9.22"
coroutines = "1.7.1"
kotest = "5.8.0"
kotlincrypto = "0.4.0"
detekt = "1.23.3"
detekt = "1.23.7"
ktor = "2.3.7"
slf4j = "2.0.12"

Expand Down

0 comments on commit 6174795

Please sign in to comment.