Guice javax.inject dependency hack
@@ -61,7 +61,10 @@ public class JoobyModule extends AbstractModule {
} else {
binding = bind(key.getType());
}
- binding.toProvider(provider);
+ //Guice does not support jakarta inject yet
+ //https://github.com/google/guice/issues/1383
+ javax.inject.Provider legacyProvider = () -> provider.get();
+ binding.toProvider(legacyProvider);
}
}
