Skip to content

Commit c469cb9

Browse files
Upgrade to Java 22
1 parent 2e5e900 commit c469cb9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/gradle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-java@v3
15+
- uses: actions/setup-java@v4
1616
with:
1717
distribution: 'liberica'
1818
java-version: |
19-
17
19+
22
2020
21
2121
- name: Validate Gradle wrapper
2222
uses: gradle/wrapper-validation-action@v1

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply from: 'gradle/docker.gradle'
2727

2828
java {
2929
toolchain {
30-
languageVersion = JavaLanguageVersion.of(21)
30+
languageVersion = JavaLanguageVersion.of(22)
3131
}
3232
}
3333

gradle/runtime.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ ext.debugJvmArgs = [
3939

4040
version = grgit ? "${grgit.head().abbreviatedId}.${Instant.now().epochSecond}" : (System.env.SOURCE_VERSION ?: '0.0.0-UNKNOWN')
4141

42-
bootRun {
43-
jvmArgs += commonJvmArgs + jmxJvmArgs + debugJvmArgs
44-
}
42+
bootRun.jvmArgs += commonJvmArgs + jmxJvmArgs + debugJvmArgs
43+
// TODO: remove this once the Boot Gradle Plugin works with Java 22
44+
springBoot.mainClass = 'resourceater.ResourceaterApplication'
4545

4646
mkdir 'logs' // The JVM is not able to start if the GC logs folder does not exists :(

0 commit comments

Comments
 (0)