Skip to content

Commit 36ad3f7

Browse files
committed
explicitly set kotlin jvm target bytecode
1 parent 0710bc4 commit 36ad3f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/kotlin/com.expediagroup.graphql.conventions.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ tasks {
2222
kotlin {
2323
jvmToolchain(17)
2424
}
25+
val kotlinJvmVersion: String by project
2526
withType<KotlinCompile> {
2627
kotlinOptions {
28+
// intellij gets confused without it
29+
jvmTarget = kotlinJvmVersion
2730
freeCompilerArgs = listOf("-Xjsr305=strict")
2831
}
2932
}

0 commit comments

Comments
 (0)