FANNG1 commented on issue #10262:
URL: https://github.com/apache/gravitino/issues/10262#issuecomment-4021693137
we may need following code in the build.gradle.kts in the modules which are
compatibility with JDK8
```
tasks.named<JavaCompile>("compileTestJava") {
// client-java main artifact targets Java 8; tests depend on modules that
publish Java 17 variants.
// Compile tests with release 17 to make Gradle variant matching for
:core/:server test classpath deterministic.
options.release.set(17)
}
val targetJvmVersionAttribute = TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE
configurations.named("testCompileClasspath") {
attributes.attribute(targetJvmVersionAttribute, 17)
}
configurations.named("testRuntimeClasspath") {
attributes.attribute(targetJvmVersionAttribute, 17)
}
tasks.test {
javaLauncher.set(
javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(17))
}
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]