Skip to content

Commit

Permalink
Use JDK 11 in the CI and bump the JVM toolchain version to 11
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
ShreckYe committed Nov 4, 2024
1 parent 3548690 commit 8b6058e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/kotlin-multiplatform-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
java-version: '11'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
Expand All @@ -35,11 +35,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
java-version: '11'
distribution: 'temurin'

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

1 comment on commit 8b6058e

@ShreckYe
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to bump the JVM toolchain version, but it OK as it's removed in the next commit.

Please sign in to comment.