From e7c59b41770e5bd311e8fd9cfd03027a20ea71b4 Mon Sep 17 00:00:00 2001
From: Chang chen <baibaichen@gmail.com>
Date: Thu, 3 Aug 2017 11:59:50 +0100
Subject: [PATCH] [SPARK-21605][BUILD] Let IntelliJ IDEA correctly detect
 Language level and Target byte code version

With SPARK-21592, removing source and target properties from maven-compiler-plugin lets IntelliJ IDEA use default Language level and Target byte code version which are 1.4.

This change adds source, target and encoding properties back to fix this issue.  As I test, it doesn't increase compile time.

Author: Chang chen <baibaichen@gmail.com>

Closes #18808 from baibaichen/feature/idea-fix.
---
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pom.xml b/pom.xml
index 589c7afe1e..d54a9c4f19 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2020,6 +2020,8 @@
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.6.1</version>
           <configuration>
+            <source>${java.version}</source>
+            <target>${java.version}</target>
             <skipMain>true</skipMain> <!-- skip compile -->
             <skip>true</skip> <!-- skip testCompile -->
           </configuration>
-- 
GitLab