Skip to content

Set jdk_toolchain_version=17 - #3252

Open
lunakoly wants to merge 3 commits into
kotlin-community/devfrom
lunakoly/kt88174-serialization-bump-jdk-toolchain-to-17
Open

Set jdk_toolchain_version=17#3252
lunakoly wants to merge 3 commits into
kotlin-community/devfrom
lunakoly/kt88174-serialization-bump-jdk-toolchain-to-17

Conversation

@lunakoly

@lunakoly lunakoly commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Main PR to Kotlin: JetBrains/kotlin#7833
Alternative PR: #3250

^KT-88174

@sandwwraith

Copy link
Copy Markdown
Member

I think it's better to set the whole toolchain. But we need to make sure that produced classfiles are still compatible with Java 8.

@lunakoly

lunakoly commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Check with Kotlin Master fails for an unrelated reason:

Execution failed for task ':kotlinx-serialization-core:compileKotlinJs'. org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jetbrains.kotlin.compilerRunner.btapi.BuildToolsApiCompilationWork

Runtime library builds fail with (caused by the latest fixup, the previous build is green):

Execution failed for task ':guide:compileTestKotlin'. org.gradle.api.InvalidUserCodeException: ⛔ Inconsistent JVM Target Compatibility Between Java and Kotlin Tasks
Inconsistent JVM-target compatibility detected for tasks 'compileTestJava' (17) and 'compileTestKotlin' (1.8).
Solution: Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation

Using "ERROR" insead of "error" will become an error on its own soon (see KT-86059).
@lunakoly
lunakoly force-pushed the lunakoly/kt88174-serialization-bump-jdk-toolchain-to-17 branch from 407e283 to 89ac199 Compare September 3, 2026 15:44
fzhinkin and others added 2 commits September 4, 2026 11:06
With recent changes on KGP side (KT-88381) it results in a warning, which fails our builds.
@lunakoly
lunakoly force-pushed the lunakoly/kt88174-serialization-bump-jdk-toolchain-to-17 branch from 89ac199 to 549c2f3 Compare September 4, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants