-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from sentenza/upgrade-play28
Upgrade Play 2.9.0 and drop Java 8
- Loading branch information
Showing
23 changed files
with
219 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ target | |
node_modules/ | ||
/docs/build/ | ||
/docs/package*.json | ||
logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
play.ws.ssl.loose.acceptAnyCertificate = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> | ||
|
||
<!DOCTYPE configuration> | ||
|
||
<configuration> | ||
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/> | ||
<import class="ch.qos.logback.classic.AsyncAppender"/> | ||
<import class="ch.qos.logback.core.FileAppender"/> | ||
<import class="ch.qos.logback.core.ConsoleAppender"/> | ||
|
||
<appender name="FILE" class="FileAppender"> | ||
<file>${application.home:-.}/logs/application.log</file> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="STDOUT" class="ConsoleAppender"> | ||
<!-- | ||
On Windows, enabling Jansi is recommended to benefit from color code interpretation on DOS command prompts, | ||
which otherwise risk being sent ANSI escape sequences that they cannot interpret. | ||
See https://logback.qos.ch/manual/layouts.html#coloring | ||
--> | ||
<!-- <withJansi>true</withJansi> --> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ASYNCFILE" class="AsyncAppender"> | ||
<appender-ref ref="FILE"/> | ||
</appender> | ||
|
||
<appender name="ASYNCSTDOUT" class="AsyncAppender"> | ||
<appender-ref ref="STDOUT"/> | ||
</appender> | ||
|
||
<logger name="play" level="INFO"/> | ||
<logger name="application" level="DEBUG"/> | ||
|
||
<root level="WARN"> | ||
<appender-ref ref="ASYNCFILE"/> | ||
<appender-ref ref="ASYNCSTDOUT"/> | ||
</root> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
play.ws.ssl.loose.acceptAnyCertificate = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> | ||
|
||
<!DOCTYPE configuration> | ||
|
||
<configuration> | ||
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/> | ||
<import class="ch.qos.logback.classic.AsyncAppender"/> | ||
<import class="ch.qos.logback.core.FileAppender"/> | ||
<import class="ch.qos.logback.core.ConsoleAppender"/> | ||
|
||
<appender name="FILE" class="FileAppender"> | ||
<file>${application.home:-.}/logs/application.log</file> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="STDOUT" class="ConsoleAppender"> | ||
<!-- | ||
On Windows, enabling Jansi is recommended to benefit from color code interpretation on DOS command prompts, | ||
which otherwise risk being sent ANSI escape sequences that they cannot interpret. | ||
See https://logback.qos.ch/manual/layouts.html#coloring | ||
--> | ||
<!-- <withJansi>true</withJansi> --> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ASYNCFILE" class="AsyncAppender"> | ||
<appender-ref ref="FILE"/> | ||
</appender> | ||
|
||
<appender name="ASYNCSTDOUT" class="AsyncAppender"> | ||
<appender-ref ref="STDOUT"/> | ||
</appender> | ||
|
||
<logger name="play" level="INFO"/> | ||
<logger name="application" level="DEBUG"/> | ||
|
||
<root level="WARN"> | ||
<appender-ref ref="ASYNCFILE"/> | ||
<appender-ref ref="ASYNCSTDOUT"/> | ||
</root> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
play.server.provider = play.core.server.AkkaHttpServerProvider | ||
play.server.provider = play.core.server.AkkaHttpServerProvider | ||
|
||
play.ws.ssl.loose.acceptAnyCertificate = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> | ||
|
||
<!DOCTYPE configuration> | ||
|
||
<configuration> | ||
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/> | ||
<import class="ch.qos.logback.classic.AsyncAppender"/> | ||
<import class="ch.qos.logback.core.FileAppender"/> | ||
<import class="ch.qos.logback.core.ConsoleAppender"/> | ||
|
||
<appender name="FILE" class="FileAppender"> | ||
<file>${application.home:-.}/logs/application.log</file> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="STDOUT" class="ConsoleAppender"> | ||
<!-- | ||
On Windows, enabling Jansi is recommended to benefit from color code interpretation on DOS command prompts, | ||
which otherwise risk being sent ANSI escape sequences that they cannot interpret. | ||
See https://logback.qos.ch/manual/layouts.html#coloring | ||
--> | ||
<!-- <withJansi>true</withJansi> --> | ||
<encoder class="PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ASYNCFILE" class="AsyncAppender"> | ||
<appender-ref ref="FILE"/> | ||
</appender> | ||
|
||
<appender name="ASYNCSTDOUT" class="AsyncAppender"> | ||
<appender-ref ref="STDOUT"/> | ||
</appender> | ||
|
||
<logger name="play" level="INFO"/> | ||
<logger name="application" level="DEBUG"/> | ||
|
||
<root level="WARN"> | ||
<appender-ref ref="ASYNCFILE"/> | ||
<appender-ref ref="ASYNCSTDOUT"/> | ||
</root> | ||
|
||
</configuration> |
23 changes: 23 additions & 0 deletions
23
play-testkit/src/test/scala/play/grpc/testkit/SslTestServerFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> | ||
*/ | ||
package play.grpc.testkit | ||
|
||
import akka.annotation.ApiMayChange | ||
import play.api.test.DefaultTestServerFactory | ||
import play.api.Application | ||
import play.core.server.ServerConfig | ||
|
||
/** | ||
* A test server factory that configures the server to use SSL. | ||
*/ | ||
@ApiMayChange class SslTestServerFactory extends DefaultTestServerFactory { | ||
override def serverConfig(app: Application): ServerConfig = { | ||
super | ||
.serverConfig(app) | ||
.copy( | ||
port = None, | ||
sslPort = Some(0), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.