We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
JavaCompile
KotlinCompile
1 parent 87b5da5 commit 40ccaaeCopy full SHA for 40ccaae
build.gradle.kts
@@ -54,11 +54,17 @@ subprojects {
54
testImplementation(rootProject.testLibs.gson) /* Used by Approvals for pretty-printing JSON */
55
}
56
57
- val projectTargetsJava16 = this.name == "bytecode-scanner-tests"
58
- if (!projectTargetsJava16) {
+ val projectUsesJava16Toolchain = this.name == "bytecode-scanner-tests"
+ || this.name == "bytecode-samples-java"
59
+ if (!projectUsesJava16Toolchain) {
60
tasks.withType<KotlinCompile> {
61
kotlinOptions.jvmTarget = "11"
62
63
+
64
+ tasks.withType<JavaCompile> {
65
+ sourceCompatibility = JavaVersion.VERSION_11.toString()
66
+ targetCompatibility = JavaVersion.VERSION_11.toString()
67
+ }
68
69
70
tasks.withType<Test> {
0 commit comments