-
Notifications
You must be signed in to change notification settings - Fork 174
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
build: Add maven-compiler-plugin for java cross-build #911
Conversation
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.10.1</version> | ||
<configuration> | ||
<source>${java.version}</source> | ||
<target>${java.version}</target> | ||
<skipMain>true</skipMain> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> |
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.
cc @huaxingao I guess that we need this to make a Comet build on Java 17 builder to be built with Iceberg on Java 11.
After @huaxingao tested it, this doesn't help on the issue. I will close this for now. |
Wait for re-verifying cc @huaxingao |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #911 +/- ##
============================================
- Coverage 34.03% 34.01% -0.03%
+ Complexity 883 875 -8
============================================
Files 113 112 -1
Lines 43170 43221 +51
Branches 9516 9563 +47
============================================
+ Hits 14693 14701 +8
- Misses 25471 25491 +20
- Partials 3006 3029 +23 ☔ View full report in Codecov by Sentry. |
Seems to be the right thing to do irrespective of whether it addresses the iceberg build issue. |
Thanks @parthchandra . |
Thanks @andygrove @huaxingao @parthchandra |
Just realized that we already had
which set these properties for the compiler plugin. So it appears we are not adding anything new, which may explain why this did not help. There is a new property available since JDK 9 which we could use (and also remove the jdk 1.8 profile which is meaningless if the source and target version are set to 11 or greater)
https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html |
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
How are these changes tested?