Skip to content

Guice 7 + switch to Jakarta Dependency Injection#11792

Merged
mkurz merged 8 commits intoplayframework:mainfrom
mkurz:guice-7
Jan 24, 2025
Merged

Guice 7 + switch to Jakarta Dependency Injection#11792
mkurz merged 8 commits intoplayframework:mainfrom
mkurz:guice-7

Conversation

@mkurz
Copy link
Member

@mkurz mkurz commented May 8, 2023

@mkurz mkurz added this to the 2.10.0 milestone May 8, 2023
@mkurz
Copy link
Member Author

mkurz commented May 8, 2023

The two scripted tests that fail, but that's because they depend on scalatestplus-play / play-ws which didn't switch to Jakarta inject yet of course. I built them locally with Jakarta and ran all the scripted tests with success afterwards. Nice.

@jsoref
Copy link
Contributor

jsoref commented Jul 3, 2024

@mkurz: is there something specific blocking this work?
I don't see any sign of jakarta in playframework/scalatestplus-play nor do I see sign of jakarta in playframework/play-ws (although there's one issue that makes minimal mention of jakarta).

@shawishi
Copy link

shawishi commented Nov 4, 2024

Ping 👋🏼


```scala
import javax.inject.Inject
import jakarta.inject.Inject
Copy link
Member

Choose a reason for hiding this comment

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

I think the changes in documentation/manual/releases/** should be reverted 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@mkurz mkurz force-pushed the guice-7 branch 4 times, most recently from 003f78b to 6acde5b Compare January 24, 2025 20:55
mkurz added 8 commits January 24, 2025 23:40
...which itself depends on Play, and those Play artifacts that
scalatestplus-play pulls in still, of course, use javax.inject, because
we have not released Play artifacts that use jakarta.inject yet...
So this is a catch22 which can only be solved by disabling these 3 tests,
release Play artifacts that switched to jakarta, upgrade scalatestplus-play
to make use oft them and then enable the tests again with upgraded
scalatestplus-play...
@mkurz mkurz marked this pull request as ready for review January 24, 2025 23:23
@mkurz mkurz merged commit 2c77ebe into playframework:main Jan 24, 2025
29 checks passed
@mkurz mkurz deleted the guice-7 branch January 24, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants