Skip to content

Commit

Permalink
Play 2.6 and scala 2.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
cardamo committed Jul 18, 2017
1 parent c6a1fa3 commit 4189bcc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
42 changes: 15 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,17 @@ I'm going to publish them at jcenter but it may require changing groupId.

## Installation

Add the following dependency for Play > 2.5.14:
Add the following dependency for Play 2.6.x:

libraryDependencies += "org.databrary" %% "play-logback-access" % "0.5.2"

Add the following dependency for Play 2.5.0 - 2.5.13:

libraryDependencies += "org.databrary" %% "play-logback-access" % "0.5.1"

### Play 2.4.x

Add the following dependency for Play 2.4.x:

libraryDependencies += "org.databrary" %% "play-logback-access" % "0.4"

### Play 2.3.x

For Play 2.3.x on Scala 2.11, use version 0.3:

libraryDependencies += "org.databrary" %% "play-logback-access" % "0.3"

[Usage info](https://github.com/databrary/play-logback-access/releases/tag/0.3)

### Play 2.2.x

For Play 2.2.x on Scala 2.10, use version 0.1:

libraryDependencies += "org.databrary" %% "play-logback-access" % "0.1"
libraryDependencies += "org.databrary" %% "play-logback-access" % "0.6.0"

| play version | lib version |
|--------------|-------------|
| 2.5.14+ | 0.5.2 |
| 2.5.0+ | 0.5.1 |
| 2.4.x | 0.4 |
| 2.3.x | 0.3 |
| 2.2.x | 0.1 |

## Configuration

Expand Down Expand Up @@ -79,7 +62,12 @@ Inject `PlayLogbackAccessFilter` to access a Filter (in 0.4 and earlier this was

### Example: Filter

#### 0.5 and later:
#### 0.6:
In file `conf/application.conf`

play.filters.enabled += org.databrary.PlayLogbackAccessFilter

#### 0.5:

In file: `app/Filters.scala`
```scala
Expand Down
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ homepage := Some(url("http://github.com/cardamo/play-logback-access"))

licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))

version := "0.5.2"
version := "0.6.0"

libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.5.14",
"com.typesafe.play" %% "play" % "2.6.0",
"ch.qos.logback" % "logback-access" % "1.2.3",
"javax.servlet" % "javax.servlet-api" % "3.1.0" % Optional
)
Expand All @@ -24,7 +24,8 @@ libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0" % Test
)

scalaVersion := "2.11.7"
scalaVersion := "2.12.2"
crossScalaVersions := Seq("2.11.7", "2.12.2")

scalacOptions ++= Seq("-feature","-deprecation")

Expand Down

0 comments on commit 4189bcc

Please sign in to comment.