Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sisu-users] Question regarding CDI javax.enterprise:cdi-api dependency in sisu Plexus

On Mon, 13 Sept 2021 at 19:21, Tamás Cservenák <tamas@xxxxxxxxxxxxx> wrote:
Howdy,

AFAIK, the CDI is needed only for the @Typed annotation, is this correct?

correct, Sisu lets you use CDI's standard @Typed annotation to limit the types a particular bean is bound under

But sisu.inject also provides a @Typed annotation that has the same effect (still correct?)

that's right, under the "org.eclipse.sisu" namespace

So, in case of Apache Maven -- that uses sisu.plexus AND org.eclipse.sisu.Typed (at one single place), is CDI needed, or can it be simply excluded from Maven dependencies? Will that affect the functionality of Plexus shim in case of some other (non maven, but extension/plugin) Plexus components?

I believe last time this was discussed in 2018 there was one private extension that still used CDI's @Typed:


but that may have been migrated to use Sisu's @Typed (if it hasn't then it wouldn't be hard to do - so this isn't a blocker IMHO)

looking at Apache Maven's latest source it appears this type is already excluded from plugins for 4.x:


but this exclusion hasn't been backported yet to 3.x

I'd suggest asking on the Maven list if anyone is still using that annotation, and declare that it won't be available for use in the next 3.x release - excluding it should only mean that a component might be bound under more types than it would have been when using @Typed.

Thanks
Tamas
_______________________________________________
sisu-users mailing list
sisu-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sisu-users

Back to the top