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 1646da3 commit 1774f68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 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

0 comments on commit 1774f68

Please sign in to comment.