Skip to content

Commit 7b3f7bb

Browse files
committed
Build: Add jvm target to point to java 8 to kotlin options
This change is necessary because otherwise the build fails with the below exception: ------------------------------------------------------------------------ > Task :aztec:compileDebugKotlin FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':aztec:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain Learn more about JVM-target validation: https://kotl.in/gradle/jvm/ target-validation
1 parent f944b54 commit 7b3f7bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ allprojects {
2929
}
3030
tasks.withType(KotlinCompile).all {
3131
kotlinOptions {
32+
jvmTarget = JavaVersion.VERSION_1_8
3233
allWarningsAsErrors = true
3334
}
3435
}

0 commit comments

Comments
 (0)