I have issues with moving from SBT to Gradle. After a few tests, here is the smallest issue I can describe. I believe it is the core issue.
Here is my issue :
- I tried to use the sample project given by lightbend: https://github.com/playframework/play-java-hello-world-tutorial/tree/2.7.x
- I changed the version of Play to 2.6.20 (Gradle seems not to be compatible with 2.7 yet) in both the SBT and Gradle settings.
- And changed one view to add the following line: @request.getHeader(“User-Agent”)
Building it with SBT works like a charm, but fails with Gradle.
object getHeader is not a member of package play.api.mvc.request
I had a look in an IDE. With Gradle, as mentioned above, “@request” returns a play.api.mvc.request whereas, with SBT, I see a “Http.Context.Explicit” coming from “play.mvc” package.
Any insight ? Thanks a lot