Skip to content

Commit

Permalink
Remove runtime play dependency, add version compatibility statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregg Hernandez committed Feb 20, 2017
1 parent 99a3742 commit cebe3d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

json-macro is an attempt at a scalameta macro for play-json that avoids the overhead of play-json's functional syntax. See [this blog post](https://www.lucidchart.com/techblog/2016/08/29/speeding-up-restful-services-in-play-framework/) for details.

Compatibility is currently tested against play-json 2.6.0-M1. That means it is compatible with play-json 2.5.x as well but that is mostly incidental. Once 2.6.x becomes final I plan to support the latest stable release of play-json moving forward. Any version that has the same Reads/Writes API should automatically be supported by json-macro.

## Install

Add the follow to your build.sbt:
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ scalacOptions in (Compile, console) := Seq()
sources in (Compile, doc) := Nil

libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.6.0-M1",
"com.typesafe.play" %% "play-json" % "2.6.0-M1" % Test,
"org.scalameta" %% "scalameta" % "1.4.0",
"org.specs2" %% "specs2-core" % "3.8.8" % Test
)
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/Json.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gregghz.json

import scala.annotation.StaticAnnotation
import scala.meta._
import scala.collection.immutable.Seq
import scala.collection.mutable
import scala.meta._

object JsonRecord {

Expand Down

0 comments on commit cebe3d8

Please sign in to comment.