-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14281][TESTS] Fix java8-tests and simplify their build #12073
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
We now build test-jars for all subprojects, so this is redundant.
| </plugin> | ||
| <plugin> | ||
| <!-- disabled --> | ||
| <groupId>net.alchim31.maven</groupId> |
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.
AFAIK the idea behind this logic was to ensure that Java files would not be compiled by the Scala maven plugin, but disabling this has the side-effect of preventing this module's Scala test source file from being compiled and run in the Maven build.
Instead, I think it's okay to just modify the Scala Maven Plugin's javacArgs configuration.
|
I have updated the pull request builder Jenkins job to use a Java 8 JDK, so these tests should now be run. It just occurred to me that I may want to configure the |
|
Test build #54555 has finished for PR 12073 at commit
|
|
Out of curiosity, isn't all this work mostly throw away if we're really dropping jdk7 support? At that point you could just move the source files to core/src/test, and get rid of all the build-related code. |
|
Yep, this would be irrelevant if we dropped JDK 7. However, I'm doing some other work which may have an impact on Java 8 lambda compatibility so I wanted to fix these tests to make my life a little easier. |
|
+1. "Oops". Yeah we probably want to keep these tests in any event since they specifically test Java 8. Bigger question is just how far we want to go to update and streamline Java code and tests to use lambdas. |
|
Any objections to these build changes or is this now good to merge? |
|
Go ahead, it's a net improvement on the current state. |
|
Merging now; thanks everyone. |
This patch fixes a compilation / build break in Spark's
java8-testsand refactors their POM to simplify the build. See individual commit messages for more details.