User: kyle wood Date: 03 Oct 22 03:51 Revision: dfc2ff09488f3b0d93bb9915794d406b62d6fda5 Summary: Configure Kotlin JVM toolchain version too I assumed Kotlin would default to the toolchain language version set by the java plugin, but that doesn't seem to be the case. This fixes the issue with building the 2022.3 branch on JDK 11. TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8150&personal=false Index: build.gradle.kts =================================================================== --- build.gradle.kts (revision e98f08eef9a2ecf49160dbc92f738e24f99d91f5) +++ build.gradle.kts (revision dfc2ff09488f3b0d93bb9915794d406b62d6fda5) @@ -44,6 +44,11 @@ languageVersion.set(JavaLanguageVersion.of(11)) } } +kotlin { + jvmToolchain { + languageVersion.set(java.toolchain.languageVersion.get()) + } +} val gradleToolingExtensionSourceSet: SourceSet = sourceSets.create("gradle-tooling-extension") { configurations.named(compileOnlyConfigurationName) {