-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Play 2.9.0 and drop Java 8 #479
Conversation
The exception that is blocking tests for JDK 11 right now is:
This blog post describes this kind of errors. As pointed out in this comment it should be also possible to avoid any check on SSL certs but I don't see where to put this kind of configuration in this project:
|
c3d8813
to
5846d80
Compare
5846d80
to
e134f20
Compare
e134f20
to
4e4e60f
Compare
Rebased etc, will try to make this working asap. |
4e4e60f
to
8921413
Compare
eb428cf
to
55936e6
Compare
@sentenza It seems you force pushed this branch which overrides changes that we had merged in the main branch already (and my rebase with fixed conflicts yesterday). I fixed that now and force pushed myself again, so we should have a clean state now. Can you do me a favor and make sure you are up to date locally? Fetch the changes and then when on your
|
@mkurz I've double checked and the problem was generated by my previous pull strategy ( |
play-scalatest/src/test/scala/play/grpc/scalatest/PlayScalaTestSpec.scala
Show resolved
Hide resolved
Depends on |
"ALPN must be enabled and list HTTP/2 as a supported protocol"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments.
If you don't mind I will force push my changes which will override yours, but some are similar. Please take a look at my comments to see how I got it working.
CI should be green then.
build.sbt
Outdated
@@ -211,4 +212,6 @@ val playInteropTestJava = Project("play-grpc-interop-test-java", file("play-inte | |||
.enablePlugins(build.play.grpc.NoPublish) | |||
.pluginTestingSettings | |||
|
|||
Test / javaOptions ++= Seq("--add-exports=java.base/sun.security.x509=ALL-UNNAMED") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to go into the CommonPlugin so it takes effect for all the projects.
play-scalatest/src/test/scala/play/grpc/scalatest/PlayScalaTestSpec.scala
Show resolved
Hide resolved
override def newAppForTest(testData: TestData): Application = fakeApplication() | ||
|
||
protected def newServerForTest(app: Application, testData: TestData): RunningServer = | ||
testServerFactory.start(app) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to override all those methods, see my other comment.
db6f104
to
58ac5f8
Compare
@mkurz I would have preferred to see my changes as well, but anyway thank you for solving the issues. |
@mkurz are you going to publish a new version targeting Play 2.9? |
I think we should try to support Scala 3 before release a new version. |
Sorry, I was working on it since yesterday and diffed to your branch some things were similiar but I had already commited more locally. To save time I just pushed for now instead of reverting some of your changes that weren't necessary and to safe time solving conflicts. Usually I don't do that, just now I wanted to move on quickly.
Actually it would be nice if we could cross compile to Scala 3 first... I started a PR for this. |
sun.security.x509.
This Play doc](https://www.playframework.com/documentation/2.9.x/Migration29#Generation-of-Self-Signed-Certificates-Fails-in-Java-17-and-Java-21) explains why we get the error in pipelines.
In fact, we set the https.port only in staging and so on, but we do not have any valid certificate.
To solve this issue in production/staging we have to export a specific var: