11import sbt .Tests ._
22
3- val `Play-2.7-version` = " 2.7.9"
4- val `Play-2.8-version` = " 2.8.2"
3+ val `Play-2.8-version` = " 2.8.22"
4+ val `Play-2.9-version` = " 2.9.7"
5+ val `Play-3.0-version` = " 3.0.7"
56
67/**
78 * Test Configurations
89 */
910lazy val TestCommon = config(" test-common" ) extend (Compile )
10- lazy val `Test-Play-2.7` = config(" test-play-2.7" )
11- lazy val `Test-Play-2.8` = config(" test-play-2.8" )
11+ lazy val `Test-Play-28` = config(" test-play-28" )
12+ lazy val `Test-Play-29` = config(" test-play-29" )
13+ lazy val `Test-Play-30` = config(" test-play-30" )
1214
1315configs(
1416 TestCommon ,
15- `Test-Play-2.8`,
16- `Test-Play-2.7`
17+ `Test-Play-28`,
18+ `Test-Play-29`,
19+ `Test-Play-30`
1720)
1821
1922libraryDependencies ++= Seq (
2023 kanelaAgent % " provided" ,
21- " com.typesafe.play" %% " play" % `Play-2.7-version` % " provided,test-common,test-play-2.7" ,
22- " com.typesafe.play" %% " play-netty-server" % `Play-2.7-version` % " provided,test-common,test-play-2.7" ,
23- " com.typesafe.play" %% " play-akka-http-server" % `Play-2.7-version` % " provided,test-common,test-play-2.7" ,
24- " com.typesafe.play" %% " play-ws" % `Play-2.7-version` % " provided,test-common,test-play-2.7" ,
25- " com.typesafe.play" %% " play-test" % `Play-2.7-version` % " provided,test-common,test-play-2.7" ,
26- " com.typesafe.play" %% " play-logback" % `Play-2.7-version` % " test-common,test-play-2.7" ,
27- scalatest % " test-common,test-play-2.8,test-play-2.7" ,
28- " org.scalatestplus.play" %% " scalatestplus-play" % " 4.0.3" % " test-play-2.8,test-play-2.7"
24+ scalatest % " test-common,test-play-28,test-play-29,test-play-30"
2925)
3026
3127libraryDependencies ++= Seq (
32- " com.typesafe.play" %% " play-akka-http2-support" % `Play-2.8-version` % " test-play-2.8" ,
33- " com.typesafe.play" %% " play" % `Play-2.8-version` % " test-play-2.8" ,
34- " com.typesafe.play" %% " play-netty-server" % `Play-2.8-version` % " test-play-2.8" ,
35- " com.typesafe.play" %% " play-akka-http-server" % `Play-2.8-version` % " test-play-2.8" ,
36- " com.typesafe.play" %% " play-ws" % `Play-2.8-version` % " test-play-2.8" ,
37- " com.typesafe.play" %% " play-test" % `Play-2.8-version` % " test-play-2.8" ,
38- " com.typesafe.play" %% " play-logback" % `Play-2.8-version` % " test-play-2.8"
28+ " com.typesafe.play" %% " play-akka-http2-support" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
29+ " com.typesafe.play" %% " play" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
30+ " com.typesafe.play" %% " play-netty-server" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
31+ " com.typesafe.play" %% " play-akka-http-server" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
32+ " com.typesafe.play" %% " play-ws" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
33+ " com.typesafe.play" %% " play-test" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
34+ " com.typesafe.play" %% " play-logback" % `Play-2.8-version` % " provided,test-common,test-play-28" ,
35+ " org.scalatestplus.play" %% " scalatestplus-play" % " 5.1.0" % " provided,test-common,test-play-28" ,
36+ " com.google.inject" % " guice" % " 5.1.0" % " test-play-28" ,
37+ " com.google.inject.extensions" % " guice-assistedinject" % " 5.1.0" % " test-play-28"
38+ )
39+
40+ libraryDependencies ++= Seq (
41+ " com.typesafe.play" %% " play-akka-http2-support" % `Play-2.9-version` % " test-play-29" ,
42+ " com.typesafe.play" %% " play" % `Play-2.9-version` % " test-play-29" ,
43+ " com.typesafe.play" %% " play-netty-server" % `Play-2.9-version` % " test-play-29" ,
44+ " com.typesafe.play" %% " play-akka-http-server" % `Play-2.9-version` % " test-play-29" ,
45+ " com.typesafe.play" %% " play-ws" % `Play-2.9-version` % " test-play-29" ,
46+ " com.typesafe.play" %% " play-test" % `Play-2.9-version` % " test-play-29" ,
47+ " com.typesafe.play" %% " play-logback" % `Play-2.9-version` % " test-play-29" ,
48+ " org.scalatestplus.play" %% " scalatestplus-play" % " 6.0.1" % " test-play-29"
49+ )
50+
51+ libraryDependencies ++= Seq (
52+ " org.playframework" %% " play-pekko-http2-support" % `Play-3.0-version` % " test-play-30" ,
53+ " org.playframework" %% " play" % `Play-3.0-version` % " test-play-30" ,
54+ " org.playframework" %% " play-netty-server" % `Play-3.0-version` % " test-play-30" ,
55+ " org.playframework" %% " play-pekko-http-server" % `Play-3.0-version` % " test-play-30" ,
56+ " org.playframework" %% " play-ws" % `Play-3.0-version` % " test-play-30" ,
57+ " org.playframework" %% " play-test" % `Play-3.0-version` % " test-play-30" ,
58+ " org.playframework" %% " play-logback" % `Play-3.0-version` % " test-play-30" ,
59+ " org.scalatestplus.play" %% " scalatestplus-play" % " 7.0.1" % " test-play-30"
3960)
4061
4162/**
@@ -53,15 +74,28 @@ inConfig(TestCommon)(Defaults.testSettings ++ instrumentationSettings ++ baseTes
5374 crossScalaVersions := Seq (`scala_2.13_version`)
5475))
5576
56- inConfig(`Test-Play-2.7`)(Defaults .testSettings ++ instrumentationSettings ++ baseTestSettings ++ Seq (
57- sources := joinSources(TestCommon , `Test-Play-2.7`).value,
77+ inConfig(`Test-Play-28`)(Defaults .testSettings ++ instrumentationSettings ++ baseTestSettings ++ Seq (
78+ sources := joinSources(TestCommon , `Test-Play-28`).value,
79+ crossScalaVersions := Seq (`scala_2.13_version`),
80+ testGrouping := singleTestPerJvm(definedTests.value, javaOptions.value),
81+ unmanagedResourceDirectories ++= (Compile / unmanagedResourceDirectories).value,
82+ unmanagedResourceDirectories ++= (TestCommon / unmanagedResourceDirectories).value,
83+ javaOptions ++= Seq (
84+ " --add-exports=java.base/sun.security.x509=ALL-UNNAMED" ,
85+ " --add-opens=java.base/sun.security.ssl=ALL-UNNAMED"
86+ )
87+ ))
88+
89+ inConfig(`Test-Play-29`)(Defaults .testSettings ++ instrumentationSettings ++ baseTestSettings ++ Seq (
90+ sources := joinSources(TestCommon , `Test-Play-29`).value,
91+ crossScalaVersions := Seq (`scala_2.13_version`),
5892 testGrouping := singleTestPerJvm(definedTests.value, javaOptions.value),
5993 unmanagedResourceDirectories ++= (Compile / unmanagedResourceDirectories).value,
6094 unmanagedResourceDirectories ++= (TestCommon / unmanagedResourceDirectories).value
6195))
6296
63- inConfig(`Test-Play-2.8 `)(Defaults .testSettings ++ instrumentationSettings ++ baseTestSettings ++ Seq (
64- sources := joinSources(TestCommon , `Test-Play-2.8 `).value,
97+ inConfig(`Test-Play-30 `)(Defaults .testSettings ++ instrumentationSettings ++ baseTestSettings ++ Seq (
98+ sources := joinSources(TestCommon , `Test-Play-30 `).value,
6599 crossScalaVersions := Seq (`scala_2.13_version`),
66100 testGrouping := singleTestPerJvm(definedTests.value, javaOptions.value),
67101 unmanagedResourceDirectories ++= (Compile / unmanagedResourceDirectories).value,
@@ -70,8 +104,9 @@ inConfig(`Test-Play-2.8`)(Defaults.testSettings ++ instrumentationSettings ++ ba
70104
71105Test / test := Def .taskDyn {
72106 Def .task {
73- (`Test-Play-2.7` / test).value
74- (`Test-Play-2.8` / test).value
107+ (`Test-Play-28` / test).value
108+ (`Test-Play-29` / test).value
109+ (`Test-Play-30` / test).value
75110 }
76111}.value
77112
0 commit comments