From ed67eba910b0467d760dce42f49af7ea43e9e200 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Mon, 5 Jun 2023 10:35:23 -0400 Subject: [PATCH] Align JVM target version for Kotlin and Java compile tasks This commit resolves a build error related to mismatched JVM target versions for the Kotlin and Java compile tasks. Previously, the 'compileJava' task was targeting JVM 11, while the 'compileKotlin' task was targeting JVM 8. Both tasks have now been set to target JVM 11, ensuring consistency and eliminating the build error. --- bdk-jvm/lib/build.gradle.kts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bdk-jvm/lib/build.gradle.kts b/bdk-jvm/lib/build.gradle.kts index 713b1cf..d04edfb 100644 --- a/bdk-jvm/lib/build.gradle.kts +++ b/bdk-jvm/lib/build.gradle.kts @@ -20,8 +20,8 @@ repositories { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 withSourcesJar() withJavadocJar() } @@ -107,4 +107,8 @@ signing { // binaries before running the tests tasks.withType { dependsOn("buildJvmLib") + + kotlinOptions { + jvmTarget = "11" + } }