755f9c2076
## What changes were proposed in this pull request? The java version here means versions of javac source, javac target, scalac target. They could be consolidated as a single version (currently 1.8) | |javac|scalac | |------|-----|---------| |source|1.8 |2.12/2.11| |target|1.8 |1.8 | The current issues are as follows * Maven build defines a single property (`java.version`) to specify java version while SBT build defines different properties for javac (`javacJVMVersion`) and scalac (`scalacJVMVersion`). SBT build should use a single property as Maven build does. * Furthermore, it's better for SBT build to refer to `java.version` defined by Maven build. This is possible since we've already been using sbt-pom-reader. ## How was this patch tested? Tested locally. ``` build/mvn clean compile build/sbt clean compile ``` Closes #23724 from seancxmao/specify-java-version-once. Authored-by: seancxmao <seancxmao@gmail.com> Signed-off-by: Sean Owen <sean.owen@databricks.com> |
||
---|---|---|
.. | ||
build.properties | ||
MimaBuild.scala | ||
MimaExcludes.scala | ||
plugins.sbt | ||
SparkBuild.scala |