Skip to content

Commit 68fa40f

Browse files
Also produce Java 8 byte code for objectbox-kotlin.
1 parent a3f8298 commit 68fa40f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

objectbox-kotlin/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ apply plugin: 'org.jetbrains.dokka'
2323
sourceCompatibility = JavaVersion.VERSION_1_8
2424
targetCompatibility = JavaVersion.VERSION_1_8
2525

26+
// Produce Java 8 byte code, would default to Java 6.
27+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
28+
kotlinOptions {
29+
jvmTarget = "1.8"
30+
}
31+
}
32+
2633
dokka {
2734
outputFormat = 'html'
2835
outputDirectory = javadocDir

0 commit comments

Comments
 (0)