Skip to content

Play Framework 3.(0.5) Java and Pac4J [cross-posting] #12867

Answered by mkurz
HenningHeinz asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure why this is not working. First, the demo uses Scala 3.5 which Play does not support, so I downgraded to Scala 3.3.4 LTS but still the error occurs (also tried with 3.3.3 btw.). Maybe the library is compiled with a newer version of Scala therefore is incompatible with Play's artifacts? Not sure.

Meanwhile, because you try to use Play Java anyway, what you can do is just use Scala 2.13, this does actually work - see mkurz/play-pac4j-java-demo@121ede6
For you in the end it does not matter if you are using Scala 3 or 2 under the hood.

I will create an issue out of this thread so it gets tracked and a deeper look will be take what really is going on with Scala 3 here.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mkurz
Comment options

@HenningHeinz
Comment options

Answer selected by HenningHeinz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants