Skip to content

Commit 8b6058e

Browse files
committed
Use JDK 11 in the CI and bump the JVM toolchain version to 11
Bytecode compatibility shouldn't be an issue in dependent Java 8 projects because the project only uses Kotlin/JS. The message from the CI run: ```text > Task :compose-html-material-gradle-plugins-legacy:extractPrecompiledScriptPluginPlugins e: java.lang.UnsupportedClassVersionError: androidx/compose/compiler/plugins/kotlin/ComposePluginRegistrar has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:757) ```
1 parent 3548690 commit 8b6058e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/kotlin-multiplatform-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Set up JDK 8
18+
- name: Set up JDK 11
1919
uses: actions/setup-java@v4
2020
with:
21-
java-version: '8'
22-
distribution: 'zulu'
21+
java-version: '11'
22+
distribution: 'temurin'
2323

2424
- name: Setup Gradle
2525
uses: gradle/actions/setup-gradle@v4
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- uses: actions/checkout@v4
38-
- name: Set up JDK 8
38+
- name: Set up JDK 11
3939
uses: actions/setup-java@v4
4040
with:
41-
java-version: '8'
42-
distribution: 'zulu'
41+
java-version: '11'
42+
distribution: 'temurin'
4343

4444
- name: Generate and submit dependency graph
4545
uses: gradle/actions/dependency-submission@v4

0 commit comments

Comments
 (0)