Skip to content

Commit 2dbb839

Browse files
authored
Retain Java17 compatibility (#295)
* feat: retain Java17 compatibility * build: bump Spring Boot to 4.0.5
1 parent 67787c0 commit 2dbb839

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up JDK
1717
uses: actions/setup-java@v4
1818
with:
19-
java-version: 21
19+
java-version: 17
2020
distribution: 'temurin'
2121
- name: Cache Gradle packages
2222
uses: actions/cache@v4

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up JDK
1919
uses: actions/setup-java@v3
2020
with:
21-
java-version: 21
21+
java-version: 17
2222
distribution: 'temurin'
2323
- name: Cache SonarCloud packages
2424
uses: actions/cache@v3

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
jacoco
1818
java
1919
kotlin("jvm") version "2.2.21" apply false
20-
id("org.springframework.boot") version "4.0.1"
20+
id("org.springframework.boot") version "4.0.5"
2121
}
2222

2323
repositories {
@@ -62,7 +62,7 @@ allprojects {
6262
apply(plugin = "org.jmailen.kotlinter")
6363

6464
java {
65-
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
65+
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
6666
}
6767
}
6868
}
@@ -72,7 +72,7 @@ subprojects {
7272
val jmustacheVersion by extra { "1.16" }
7373

7474
tasks.withType<KotlinCompile> {
75-
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
75+
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
7676
}
7777

7878
tasks.withType<Test> {
@@ -93,8 +93,8 @@ subprojects {
9393
}
9494

9595
tasks.withType<JavaCompile> {
96-
targetCompatibility = "21"
97-
sourceCompatibility = "21"
96+
targetCompatibility = "17"
97+
sourceCompatibility = "17"
9898
}
9999
}
100100
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#This file is generated by updateDaemonJvm
2-
toolchainVersion=21
2+
toolchainVersion=17

samples/restdocs-api-spec-sample-web-test-client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repositories {
2323

2424
java {
2525
toolchain {
26-
languageVersion = JavaLanguageVersion.of(21)
26+
languageVersion = JavaLanguageVersion.of(17)
2727
}
2828
}
2929

samples/restdocs-api-spec-sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ apply plugin: 'com.epages.restdocs-api-spec'
2020

2121
java {
2222
toolchain {
23-
languageVersion = JavaLanguageVersion.of(21)
23+
languageVersion = JavaLanguageVersion.of(17)
2424
}
2525
}
2626

0 commit comments

Comments
 (0)