Skip to content

Commit 684cbb3

Browse files
committed
Configure proper JDK toolchain version for 'proto-test-models'
Main projects, while using default JDK toolchain 11, are configured to build with JDK release 8. After recent changes in KGP attributes checks for JVM compatibility is started working and complain about incompatible JVM target version for 'proto-test-models' project. To avoid this I downgraded JDK toolchain version in this project to 8.
1 parent bda29a9 commit 684cbb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

formats/protobuf/proto-test-model/build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ protobuf {
1717
}
1818
}
1919

20-
java.toolchain.languageVersion.set(JavaLanguageVersion.of(jdkToolchainVersion))
20+
// Toolchain version should be the same as JDK release in source-sets-convention
21+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
2122

2223
tasks.clean {
2324
delete(protobuf.protobuf.generatedFilesBaseDir)
@@ -31,4 +32,4 @@ sourceSets.main {
3132

3233
dependencies {
3334
api(libs.protobuf.java)
34-
}
35+
}

0 commit comments

Comments
 (0)