Skip to content

Commit

Permalink
Merge pull request #10891 from playframework/mergify/bp/2.8.x/pr-10880
Browse files Browse the repository at this point in the history
Run tests against Scala 2.12.14 and 2.13.6 and sbt 1.5.3 (backport #10880)
  • Loading branch information
mergify[bot] committed Jun 8, 2021
2 parents 14af370 + 550caad commit c869022
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ env:
# These are the versions used for (scripted) tests. The versions Play is build with however are defined in interplay.
- SCRIPTED_SBT_0_13: "0.13.18"
- SCRIPTED_SBT_1_3: "1.3.13"
- SCRIPTED_SBT_1_5: "1.5.2"
- TEST_SCALA_2_12: "2.12.13"
- TEST_SCALA_2_13: "2.13.5"
- SCRIPTED_SBT_1_5: "1.5.3"
- TEST_SCALA_2_12: "2.12.14"
- TEST_SCALA_2_13: "2.13.6"
jobs:
- TRAVIS_JDK=8

Expand Down
4 changes: 2 additions & 2 deletions documentation/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ lazy val main = Project("Play-Documentation", file("."))
unmanagedResourceDirectories in Test ++= (baseDirectory.value / "manual" / "detailedTopics" ** "code").get,
// Don't include sbt files in the resources
excludeFilter in (Test, unmanagedResources) := (excludeFilter in (Test, unmanagedResources)).value || "*.sbt",
crossScalaVersions := Seq("2.13.5", "2.12.13"),
scalaVersion := "2.13.5",
crossScalaVersions := Seq("2.13.6", "2.12.14"),
scalaVersion := "2.13.6",
fork in Test := true,
javaOptions in Test ++= Seq("-Xmx512m", "-Xms128m"),
headerLicense := Some(HeaderLicense.Custom("Copyright (C) Lightbend Inc. <https://www.lightbend.com>")),
Expand Down
2 changes: 1 addition & 1 deletion documentation/manual/hacking/BuildingFromSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This will build and publish Play for the default Scala version. If you want to p
Or to publish for a specific Scala version:

```bash
> ++ 2.13.5 publishLocal
> ++ 2.13.6 publishLocal
```

## Build the documentation
Expand Down
4 changes: 2 additions & 2 deletions documentation/manual/releases/release26/Highlights26.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can select which version of Scala you would like to use by setting the `scal
For Scala 2.12:

```scala
scalaVersion := "2.12.13"
scalaVersion := "2.12.14"
```

For Scala 2.11:
Expand All @@ -30,7 +30,7 @@ lazy val root = (project in file("."))
.enablePlugins(PlayService)
.enablePlugins(RoutesCompiler) // place routes in src/main/resources, or remove if using SIRD/RoutingDsl
.settings(
scalaVersion := "2.12.13",
scalaVersion := "2.12.14",
libraryDependencies ++= Seq(
guice, // remove if not using Play's Guice loader
akkaHttpServer, // or use nettyServer for Netty
Expand Down
4 changes: 2 additions & 2 deletions documentation/manual/releases/release27/Highlights27.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can select which version of Scala you would like to use by setting the `scal
For Scala 2.12:

```scala
scalaVersion := "2.12.13"
scalaVersion := "2.12.14"
```

For Scala 2.11:
Expand All @@ -24,7 +24,7 @@ scalaVersion := "2.11.12"
For Scala 2.13:

```scala
scalaVersion := "2.13.5"
scalaVersion := "2.13.6"
```

## Lifecycle managed by Akka's Coordinated Shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ Play 2.8 support Scala 2.12 and 2.13, but not 2.11, which has reached its end of
To set the Scala version in sbt, simply set the `scalaVersion` key, for example:

```scala
scalaVersion := "2.13.5"
scalaVersion := "2.13.6"
```

If you have a single project build, then this setting can just be placed on its own line in `build.sbt`. However, if you have a multi-project build, then the scala version setting must be set on each project. Typically, in a multi-project build, you will have some common settings shared by every project, this is the best place to put the setting, for example:

```scala
def commonSettings = Seq(
scalaVersion := "2.13.5"
scalaVersion := "2.13.6"
)

val projectA = (project in file("projectA"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If you use `groupID %% artifactID % revision` rather than `groupID % artifactID

@[explicit-scala-version-dep](code/dependencies.sbt)

Assuming the `scalaVersion` for your build is `2.13.5`, the following is identical (note the double `%%` after `"org.scala-tools"`):
Assuming the `scalaVersion` for your build is `2.13.6`, the following is identical (note the double `%%` after `"org.scala-tools"`):

@[auto-scala-version-dep](code/dependencies.sbt)

Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ object Dependencies {
* How to use this:
* $ sbt -J-XX:+UnlockCommercialFeatures -J-XX:+FlightRecorder -Dakka-http.sources=$HOME/code/akka-http '; project Play-Akka-Http-Server; test:run'
*
* Make sure Akka-HTTP has 2.12 as the FIRST version (or that scalaVersion := "2.12.13", otherwise it won't find the artifact
* crossScalaVersions := Seq("2.12.13", "2.11.12"),
* Make sure Akka-HTTP has 2.12 as the FIRST version (or that scalaVersion := "2.12.14", otherwise it won't find the artifact
* crossScalaVersions := Seq("2.12.14", "2.11.12"),
*/
object AkkaDependency {
// Needs to be a URI like git://github.com/akka/akka.git#master or file:///xyz/akka
Expand Down

0 comments on commit c869022

Please sign in to comment.