Skip to content

Conversation

ZacBlanco
Copy link
Contributor

@ZacBlanco ZacBlanco commented Apr 22, 2025

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

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
Comment on lines +31 to +32
jakarta_inject : '2.0.1',
jakarta_annotation: '2.1.1',
Copy link
Contributor Author

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}",
Copy link
Contributor Author

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

Comment on lines +56 to +57
jsch : '0.2.25',
mina_sshd : '2.15.0',
Copy link
Contributor Author

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',
Copy link
Contributor Author

@ZacBlanco ZacBlanco Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guice updated

Copy link
Contributor

@aaneja aaneja left a 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;
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZacBlanco ZacBlanco merged commit dc6ca00 into prestodb:master Apr 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants