-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-1776] Have Spark's SBT build read dependencies from Maven. #772
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
Conversation
|
Build triggered. |
|
Build started. |
|
Merged build triggered. |
|
Merged build started. |
|
Build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14980/ |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14981/ |
|
Hey @ScrapCodes - this looks like a good start. In terms of how to pass options I think the nicest behavior would be to just make it identical to maven: Since we control the It would also be good, for backwards compatibility, to do some automatic conversions: |
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15080/ |
|
@pwendell Haven't worked on backward compatibility yet, other things you pointed out should work fine. Also the bug with tests dependencies in streaming got fixed. Now sbt/sbt ~test:compile works !. |
|
Build triggered. |
|
Build started. |
|
Build triggered. |
|
Build started. |
|
Build triggered. |
|
Build started. |
|
Build triggered. |
|
Build started. |
|
Build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15099/ |
|
Build triggered. |
|
Build started. |
|
Build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15100/ |
|
Build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15098/ |
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16485/ |
|
@ScrapCodes could you try to figure out why the test reports aren't published? There are a few other patches blocking on this, so we should really merge it. |
|
@ScrapCodes it might be good to look through the source code of the XML report plug-in and see how it works. You could also inspect the different configs that are set during tests. You can also see if using a different plug-in will work: https://github.com/bseibel/sbt-simple-junit-xml-reporter-plugin |
|
Merged build triggered. |
|
Merged build started. |
|
QA tests have started for PR 772. This patch merges cleanly. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16494/ |
|
Jenkins, retest this please. |
|
Merged build started. |
|
Merged build triggered. |
|
QA tests have started for PR 772. This patch merges cleanly. |
|
QA results for PR 772: |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
|
I have updated the sbt version and that fixed the problem. |
|
Great! I'm going to merge this (yay!!). |
Patch introduces the new way of working also retaining the existing ways of doing things. For example build instruction for yarn in maven is `mvn -Pyarn -PHadoop2.2 clean package -DskipTests` in sbt it can become `MAVEN_PROFILES="yarn, hadoop-2.2" sbt/sbt clean assembly` Also supports `sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 clean assembly` Author: Prashant Sharma <[email protected]> Author: Patrick Wendell <[email protected]> Closes apache#772 from ScrapCodes/sbt-maven and squashes the following commits: a8ac951 [Prashant Sharma] Updated sbt version. 62b09bb [Prashant Sharma] Improvements. fa6221d [Prashant Sharma] Excluding sql from mima 4b8875e [Prashant Sharma] Sbt assembly no longer builds tools by default. 72651ca [Prashant Sharma] Addresses code reivew comments. acab73d [Prashant Sharma] Revert "Small fix to run-examples script." ac4312c [Prashant Sharma] Revert "minor fix" 6af91ac [Prashant Sharma] Ported oldDeps back. + fixes issues with prev commit. 65cf06c [Prashant Sharma] Servelet API jars mess up with the other servlet jars on the class path. 446768e [Prashant Sharma] minor fix 89b9777 [Prashant Sharma] Merge conflicts d0a02f2 [Prashant Sharma] Bumped up pom versions, Since the build now depends on pom it is better updated there. + general cleanups. dccc8ac [Prashant Sharma] updated mima to check against 1.0 a49c61b [Prashant Sharma] Fix for tools jar a2f5ae1 [Prashant Sharma] Fixes a bug in dependencies. cf88758 [Prashant Sharma] cleanup 9439ea3 [Prashant Sharma] Small fix to run-examples script. 96cea1f [Prashant Sharma] SPARK-1776 Have Spark's SBT build read dependencies from Maven. 36efa62 [Patrick Wendell] Set project name in pom files and added eclipse/intellij plugins. 4973dbd [Patrick Wendell] Example build using pom reader.
Patch introduces the new way of working also retaining the existing ways of doing things.
For example build instruction for yarn in maven is
mvn -Pyarn -PHadoop2.2 clean package -DskipTestsin sbt it can become
MAVEN_PROFILES="yarn, hadoop-2.2" sbt/sbt clean assemblyAlso supports
sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 clean assembly