Skip to content

Commit

Permalink
Scala 2.13 (#73)
Browse files Browse the repository at this point in the history
* Scala 2.13

* Work around sbt bug related to Scala 2.11
  • Loading branch information
mkurz authored and mumoshu committed Jun 23, 2019
1 parent a3d55e4 commit 2175097
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ language: scala
scala:
- 2.11.12
- 2.12.8
- 2.13.0-M5
- 2.13.0
services:
- memcache
jdk:
- oraclejdk8
- openjdk8
env:
- PLAY_VERSION=2.7.0
- PLAY_VERSION=2.7.3
# see https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
before_install:
- cat /etc/hosts
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ Configure your configuration endpoint in `application.conf`:

0.10.0-RC3 Built for Play 2.7.0-RC8 and Scala 2.11.12 and 2.12.7. Artifact ID for this build is `play2-memcached-play27_2.1{1,2}`

0.10.0 Built for Play 2.7.0 and Scala 2.11.12 and 2.12.8. Artifact ID for this build is `play2-memcached-play27_2.1{1,2}`

0.10.1 Built for Play 2.7.3 and Scala 2.13.0, 2.11.12 and 2.12.8. Artifact ID for this build is `play2-memcached-play27_2.1{1,2,3}`

### Publishing to the central

```
Expand All @@ -362,9 +366,9 @@ PLAY_VERSION=2.5.0 sbt ++2.11.12 publishSigned sonatypeRelease
PLAY_VERSION=2.6.0 sbt ++2.12.8 publishSigned sonatypeRelease
# Play 2.7
PLAY_VERSION=2.7.0 sbt ++2.11.12 publishSigned sonatypeRelease
PLAY_VERSION=2.7.0 sbt ++2.12.8 publishSigned sonatypeRelease
PLAY_VERSION=2.7.0 sbt ++2.13.0-M5 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.11.12 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.12.8 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.13.0 publishSigned sonatypeRelease
```

### Acknowledgement
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ val h2databaseTest = "com.h2database" % "h2" % "1.4.196" % Test

lazy val baseSettings = Seq(
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0-M5"),
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0"),
parallelExecution in Test := false,
fork in Test := true, // can be removed with sbt 1.3.0, see https://github.com/sbt/sbt/issues/4609
// Workaround until omnidoc gets published for Scala 2.13
// http://central.maven.org/maven2/com/typesafe/play/play-omnidoc_2.13/
PlayKeys.playOmnidoc := false
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ivyLoggingLevel := UpdateLogging.Full

val playVersion = scala.util.Properties.envOrElse("PLAY_VERSION", "2.7.0")
val playVersion = scala.util.Properties.envOrElse("PLAY_VERSION", "2.7.3")

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % playVersion)

Expand Down
6 changes: 3 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

PLAY_VERSION=2.7.0 sbt ++2.11.12 publishSigned sonatypeRelease
PLAY_VERSION=2.7.0 sbt ++2.12.8 publishSigned sonatypeRelease
PLAY_VERSION=2.7.0 sbt ++2.13.0-M5 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.11.12 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.12.8 publishSigned sonatypeRelease
PLAY_VERSION=2.7.3 sbt ++2.13.0 publishSigned sonatypeRelease
2 changes: 1 addition & 1 deletion samples/java/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.0")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.3")

2 changes: 1 addition & 1 deletion samples/scala/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.0")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.3")

0 comments on commit 2175097

Please sign in to comment.