Skip to content
Snippets Groups Projects
Unverified Commit df3cbe3a authored by Sean Owen's avatar Sean Owen
Browse files

[SPARK-19550][BUILD][WIP] Addendum: select Java 1.7 for scalac 2.10, still

## What changes were proposed in this pull request?

Go back to selecting source/target 1.7 for Scala 2.10 builds, because the SBT-based build for 2.10 won't work otherwise.

## How was this patch tested?

Existing tests, but, we need to verify this vs what the SBT build would exactly run on Jenkins

Author: Sean Owen <sowen@cloudera.com>

Closes #16983 from srowen/SPARK-19550.3.
parent b486ffc8
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,9 @@ object SparkBuild extends PomBuild {
},
javacJVMVersion := "1.8",
scalacJVMVersion := "1.8",
// SBT Scala 2.10 build still doesn't support Java 8, because scalac 2.10 doesn't, but,
// it also doesn't touch Java 8 code and it's OK to emit Java 7 bytecode in this case
scalacJVMVersion := (if (System.getProperty("scala-2.10") == "true") "1.7" else "1.8"),
javacOptions in Compile ++= Seq(
"-encoding", "UTF-8",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment