Skip to content

Shade resolver dependency #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShahimSharafudeen
Copy link

Shaded the resolver dependency to fix code breakage caused by the override of Guice 7.0.0 from the Presto root module.

1) [Guice/ErrorInjectingConstructor]: ExceptionInInitializerError
  at FunctionPluginManager.<init>(FunctionPluginManager.java:85)
  at FunctionServerModule.setup(FunctionServerModule.java:63)
  while locating FunctionPluginManager

Caused by: java.lang.IllegalArgumentException: org.eclipse.sisu.Parameters is not a binding annotation. Please annotate it with @BindingAnnotation.
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:218)
	at com.google.inject.Key.ensureIsBindingAnnotation(Key.java:382)
	at com.google.inject.Key.strategyFor(Key.java:370)
	at com.google.inject.Key.get(Key.java:229)
	at org.eclipse.sisu.wire.ParameterKeys.<clinit>(ParameterKeys.java:28)

Testing:
All the original unit tests are passing.

image image image

Copy link

linux-foundation-easycla bot commented Jun 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ShahimSharafudeen / name: Shahim Sharafudeen (a2080f6)

@ShahimSharafudeen ShahimSharafudeen marked this pull request as draft June 25, 2025 11:29
@ShahimSharafudeen ShahimSharafudeen marked this pull request as ready for review June 25, 2025 11:29
Copy link
Member

@imjalpreet imjalpreet left a comment

Choose a reason for hiding this comment

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

@ShahimSharafudeen, thank you. Can you also share the final shaded jar structure for verification?

resolver/pom.xml Outdated
@@ -12,6 +12,7 @@
<properties>
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<dep.slf4j.version>2.0.16</dep.slf4j.version>
<shadeBase>resolver.shaded</shadeBase>
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think we can keep it as com.facebook.airlift.resolver.\$internal like we do for Presto's other shaded dependencies.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@ShahimSharafudeen
Copy link
Author

@ShahimSharafudeen, thank you. Can you also share the final shaded jar structure for verification?

image

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