Skip to content
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

Add module info to SPI #23767

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Add module info to SPI #23767

merged 1 commit into from
Oct 15, 2024

Conversation

dain
Copy link
Member

@dain dain commented Oct 12, 2024

Description

This is the first step to convert the SPI and generally the plugin system into Java modules. This allows for better encapsulation of the plugins and Trino internals. For example, as a module the SPI can have a non-exported package containing internal utility classes shared across SPI packages. Additionally, in an automatic module, like the SPI, sealed class hiearchies can must be contained in a single package.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@dain dain requested review from electrum and wendigo October 12, 2024 21:32
@cla-bot cla-bot bot added the cla-signed label Oct 12, 2024
requires transitive com.google.errorprone.annotations;
requires transitive io.opentelemetry.api;
requires transitive jakarta.annotation;
requires transitive java.logging;
Copy link
Member

Choose a reason for hiding this comment

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

Why transitive?

Copy link
Member Author

Choose a reason for hiding this comment

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

I assume you mean for this specific import. If so, yes I think you are correct and this one should not be transitive.

Copy link
Member

Choose a reason for hiding this comment

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

What about the others, such as error prone annotations, Jakarta annotations, etc

@dain dain merged commit a5f9a1c into trinodb:master Oct 15, 2024
93 checks passed
@dain dain deleted the spi-module-info branch October 15, 2024 16:08
@github-actions github-actions bot added this to the 462 milestone Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants