-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4429][BUILD] Build for Scala 2.11 using sbt fails. #3342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,14 +101,10 @@ object SparkBuild extends PomBuild { | |
| v.split("(\\s+|,)").filterNot(_.isEmpty).map(_.trim.replaceAll("-P", "")).toSeq | ||
| } | ||
|
|
||
| if (profiles.exists(_.contains("scala-"))) { | ||
| profiles | ||
| } else if (System.getProperty("scala-2.11") != null) { | ||
| profiles ++ Seq("scala-2.11") | ||
| } else { | ||
| println("Enabled default scala profile") | ||
| profiles ++ Seq("scala-2.10") | ||
| if (System.getProperty("scala-2.11") != null && System.getProperty("scala-2.11") == "") { | ||
| System.setProperty("scala-2.11", "true") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a comment here and link to the maven code this is replicating? It might be tricky for other developers to understand why this exists. |
||
| } | ||
| profiles | ||
| } | ||
|
|
||
| Properties.envOrNone("SBT_MAVEN_PROPERTIES") match { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we no longer need to turn the scala-2.10 profile on in this case? Will Maven turn it on automatically?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the profile so Maven will turn it on if the property |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something needs "scala-2.11=true", not just "scala-2.11"? Also, does that second condition not include the first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we need the property value is not empty.
sbt build works with
-Dscala-2.11=true, but does not work with only-Dscala-2.11.Ah, you are right, the first condition is not needed.