-
Notifications
You must be signed in to change notification settings - Fork 993
Backport java 17 build support to 7.17 #1950
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
This commit adds support for building on java 17, while leaving support for building java 11 untouched.
hive/build.gradle
Outdated
@@ -58,6 +58,12 @@ dependencies { | |||
javadocSources(project(":elasticsearch-hadoop-mr")) | |||
} | |||
|
|||
tasks.named("test").configure { | |||
onlyIf { JavaVersion.current() >= JavaVersion.VERSION_16 } |
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.
Is this just needed to conditionally add the jvmArgs settings or are these tests required to run on JVM 16 and up?
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.
This is just for the jvmArgs settings. The tests still run for all versions right?
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 think the onlyIf
method marks the task to only run when the condition is true
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.
Wow you're right. I think I think I just messed that one up. I'll also need to fix it on master.
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, thanks!
Backporting support for building on java 17 from #1802 and #1808