Skip to content

Commit bd8f56f

Browse files
committed
fix(build.gradle.kts, workflows): rewind java version -> 11
1 parent 7bb8dea commit bd8f56f

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/build-master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout latest code
1313
uses: actions/checkout@v3
1414

15-
- name: Set up JDK 17
15+
- name: Set up JDK 11
1616
uses: actions/setup-java@v3
1717
with:
18-
java-version: 17
18+
java-version: 11
1919
distribution: 'zulu'
2020
cache: 'gradle'
2121

.github/workflows/dokka.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Checkout latest code
1515
uses: actions/checkout@v3
1616

17-
- name: Set up JDK 17
17+
- name: Set up JDK 11
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: 17
20+
java-version: 11
2121
distribution: 'zulu'
2222
cache: 'gradle'
2323

.github/workflows/manual_testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
ref: add-arm64-architecture
1717

18-
- name: Set up JDK 17
18+
- name: Set up JDK 11
1919
uses: actions/setup-java@v3
2020
with:
21-
java-version: 17
21+
java-version: 11
2222
distribution: 'zulu'
2323
cache: 'gradle'
2424

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Checkout latest code
1616
uses: actions/checkout@v3
1717

18-
- name: Set up JDK 17
18+
- name: Set up JDK 11
1919
uses: actions/setup-java@v3
2020
with:
21-
java-version: 17
21+
java-version: 11
2222
distribution: 'zulu'
2323
cache: 'gradle'
2424

.github/workflows/test-pull-requests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
- name: Checkout latest code
1010
uses: actions/checkout@v3
1111

12-
- name: Set up JDK 17
12+
- name: Set up JDK 11
1313
uses: actions/setup-java@v3
1414
with:
15-
java-version: 17
15+
java-version: 11
1616
distribution: 'zulu'
1717
cache: 'gradle'
1818

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ application {
4141
}
4242

4343
java {
44-
sourceCompatibility = JavaVersion.VERSION_17
45-
targetCompatibility = JavaVersion.VERSION_17
44+
sourceCompatibility = JavaVersion.VERSION_11
45+
targetCompatibility = JavaVersion.VERSION_11
4646
withJavadocJar()
4747
withSourcesJar()
4848
}
@@ -73,7 +73,7 @@ dependencies {
7373
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion") // for kotest core jvm assertions
7474
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
7575
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
76-
//example use with different frameworks
76+
// example use with different frameworks
7777
testImplementation("org.springframework.boot:spring-boot-starter-webflux:$springBootVersion")
7878
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:$springBootVersion")
7979
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-client:$springBootVersion")
@@ -188,7 +188,7 @@ jib {
188188
os = "linux"
189189
}
190190
}
191-
image = "gcr.io/distroless/java17-debian11"
191+
image = "gcr.io/distroless/java11-debian11"
192192
}
193193
container {
194194
ports = listOf("8080")
@@ -255,7 +255,7 @@ tasks {
255255

256256
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
257257
kotlinOptions {
258-
jvmTarget = "17"
258+
jvmTarget = JavaVersion.VERSION_11.toString()
259259
}
260260
}
261261

@@ -274,6 +274,6 @@ tasks {
274274
}
275275

276276
withType<Wrapper> {
277-
gradleVersion = "7.5.1"
277+
gradleVersion = "7.4.2"
278278
}
279279
}

0 commit comments

Comments
 (0)