Only support jdk14 source target for java and junit
@@ -74,7 +74,7 @@ public class Features extends ArrayList<String> {
}
public String getTargetJdk() {
- if (language().isJava() && !testFramework().isKotlinTest()) {
+ if (language().isJava() && testFramework().isJunit()) {
return VersionInfo.toJdkVersion(javaVersion.majorVersion());
} else {
return VersionInfo.toJdkVersion(Math.min(javaVersion.majorVersion(), 13));
