use of org.gradle.tooling.model.idea.IdeaJavaLanguageSettings in project meghanada-server by mopemope.
the class GradleProject method setCompileTarget.
private void setCompileTarget(final IdeaProject ideaProject) {
final IdeaJavaLanguageSettings javaLanguageSettings = ideaProject.getJavaLanguageSettings();
try {
final String srcLevel = javaLanguageSettings.getLanguageLevel().toString();
final String targetLevel = javaLanguageSettings.getTargetBytecodeVersion().toString();
super.compileSource = srcLevel;
super.compileTarget = targetLevel;
} catch (UnsupportedMethodException e) {
log.warn(e.getMessage());
}
}
Aggregations