-
Notifications
You must be signed in to change notification settings - Fork 31
Upgrades for Presto Java 17 support #295
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
To be compatible with recent upgrades to airlift and presto for Java 17, Tempto needs some upgrades in order to run against Presto JVMs which have newer dependencies. Guice needs to be upgraded to 7.0 which brings in utilization of the jakarta namespaced injection and annotation dependencies. Additionally, I neeeded to upgrade jsch and mina_sshd dependencies in order to get the existing tests passing. This required some refactoring in test classes
51918ed
to
03e7df3
Compare
jakarta_inject : '2.0.1', | ||
jakarta_annotation: '2.1.1', |
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.
These two were added
reflections : "org.reflections:reflections:${versions.reflections}", | ||
bytebuddy : "net.bytebuddy:byte-buddy:${versions.bytebuddy}", | ||
jsch : "com.jcraft:jsch:${versions.jsch}", | ||
jsch : "com.github.mwiede:jsch:${versions.jsch}", |
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.
The old jsch was left unmaintained. This fork is maintained and has recent updates
jsch : '0.2.25', | ||
mina_sshd : '2.15.0', |
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.
Both updated
jakarta_annotation: '2.1.1', | ||
assertj : '2.0.0', | ||
guava : '21.0', | ||
guice : '7.0.0', |
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.
guice updated
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
boolean authenticate(String username, String password, ServerSession session) | ||
{ | ||
return USER.equals(username) && PASSWORD.equals(password); | ||
return USER == username && PASSWORD == password; |
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.
Should use .equals
to compare content ?
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 in groovy it is different than Java. IntelliJ suggested the change. I can revert it though
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.
To be compatible with recent upgrades to airlift and presto for Java 17, Tempto needs some upgrades in order to run against Presto JVMs which have newer dependencies.
Guice needs to be upgraded to 7.0 which brings in utilization of the jakarta namespaced injection and annotation dependencies. Additionally, I neeeded to upgrade jsch and mina_sshd dependencies in order to get the existing tests passing. This required some refactoring in test classes. The project still builds and runs on JDK 8