Skip to content

Commit 7877a8b

Browse files
author
Patrick Mirwald
committed
feat: set JVM target to 1.8 for kotlin compilation
- This should fix the issue for projects with older jvm target Line 18: codeArtifactRepository { ^ Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
1 parent 5e46a8e commit 7877a8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ tasks.withType<DependencyUpdatesTask> {
6262
}
6363
}
6464

65+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
66+
kotlinOptions {
67+
jvmTarget = "1.8"
68+
}
69+
}
70+
6571
group = "com.liftric.code.artifact.repository"
6672
version =
6773
with(versioning.info) {

0 commit comments

Comments
 (0)