Hi Mark,

The jakarta.inject dependencies come this stanza
<https://github.com/google/guice/blob/master/pom.xml#L129-L133> in the
parent pom, which the core pom references here
<https://github.com/google/guice/blob/master/core/pom.xml#L17-L20>.  They
refer to this Maven artifact
<https://mvnrepository.com/artifact/jakarta.inject/jakarta.inject-api/2.0.1>.
In the 7.0.0 release, this artifact is used *instead* of the javax.inject
<https://mvnrepository.com/artifact/javax.inject/javax.inject/1> one,
whereas in 6.0.0 it's used in addition
<https://github.com/google/guice/blob/6.0.0/pom.xml#L128-L133> to the
javax.inject one.  (In releases prior to 6, the jakarta dependencies did
not exist.)

The release pages talk more
<https://github.com/google/guice/wiki/Guice600#jee-jakarta-transition>
about the jakarta transition and provide links to why Guice needs to do
this.

sam

On Sat, May 13, 2023 at 3:51 AM Mark Derricutt <[email protected]> wrote:

> On 6 May 2023, at 7:10, 'Sam Berlin' via google-guice wrote:
>
> I'm pleased to announce that Guice has two new release candidates
> available:
>
> I see the actual releases are out now, just tried updating it in our
> builds ( which make heavy use of exclusions for transitives ), I see a
> complaint about:
>
> NoClassDefFound jakarta/inject/Provider
>
> in my tests with mocks, but I can't find any dependency that actually
> provides that class to add as a dependency - looking at the poms (and the
> guide-parent pom) I couldn't spot anything either.
>
> Am I missing something obvious?
>
> Cheers
> Mark
> ------------------------------
>
> "The ease with which a change can be implemented has no relevance at all
> to whether it is the right change for the (Java) Platform for all time." —
> Mark Reinhold.
>
> Mark Derricutt
> http://www.chaliceofblood.net
> http://www.theoryinpractice.net
> http://twitter.com/talios
> http://facebook.com/mderricutt
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-guice/8DAAA386-118A-4442-97A5-4DE8AAF584E1%40talios.com
> <https://groups.google.com/d/msgid/google-guice/8DAAA386-118A-4442-97A5-4DE8AAF584E1%40talios.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/CABSN6G7zk5mNRAesf%2Bb_eSeZeONWXQ6P8m%3DMXBWZ-Lkw0cNXXA%40mail.gmail.com.

Reply via email to