-
Notifications
You must be signed in to change notification settings - Fork 3k
Build: remove .java-version file #8300
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
|
@findepi @nastra @RussellSpitzer does it make sense? |
nastra
left a comment
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.
I'm ok removing this because I don't use it, but let's see what @findepi thinks
|
|
|
In my thought, as build.gradle supports building of all Java versions, it could be a surprise to jenv users that Iceberg overrides the user's global default. Also i took a brief look at some other projects like Parquet/Spark/Flink/Hive, and didn't see .java-version there. I think this made sense before when Spark 2 was not built without java8, but now that has been removed and don't see a strong reason to default Iceberg to a specific java version overriding the user's default. That being said, I can leave this a little bit and see if anyone has strong comments against its removal. |
|
Are there any other modules that are only compiled using JDK 8? Hive? Is that even being used? I guess the primary benefit of having this file was to force building of all modules, which is helpful to catch compile-time errors after changes in |
|
I think this file is for jenv users only. There is a explicit check for java version in release: https://github.com/apache/iceberg/blob/master/deploy.gradle#L21 so we should be fine there as I can see. |
dramaticlly
left a comment
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.
LGTM, I use jenv for building iceberg locally and I dont think we need to dictate on java version here
|
Merging, I think there's no strong objection. If we have some reason in future to must build with a certain Java version, we can put this back. For now, as Iceberg can be built in many distro using different Java version, this allows more flexibility. Thanks everyone for discussions. |
This was added in #3651, and I would like to propose its removal. We no longer have Spark 2, which was the only reason Java 8 was set here.
This is actually now the wrong default for jenv users.