Skip to content

Commit

Permalink
Upgrade to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Izawa committed Nov 8, 2017
1 parent c63e291 commit 039c4b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ It converts between play-json and xml like json4s.

## Install

Builds are available for Scala 2.10.x, 2.11.x and for 2.12.x. The main line of development of play-json-xml is 2.12.2.
Builds are available for Scala 2.10.x, 2.11.x and for 2.12.x. The main line of development of play-json-xml is 2.12.4.

```scala
libraryDependencies += "org.micchon" %% "play-json-xml" % "0.2.1"
libraryDependencies += "org.micchon" %% "play-json-xml" % "0.3.0"
```

## Useage

If you want to convert xml to json,

```scala
import org.micchon.playjsonxml.Xml.toJson
import org.micchon.playjsonxml.Implicits._
import play.api.libs.json.Xml.toJson
import play.api.libs.json.implicits.JsonXmlImplicits._
import play.api.libs.json._

import scala.xml._
Expand All @@ -43,8 +43,8 @@ toJson(xml) == // or xml.toJson
Or, if you want to convert json to xml,

```scala
import org.micchon.playjsonxml.Xml.toXml
import org.micchon.playjsonxml.Implicits._
import play.api.libs.json.Xml.toJson
import play.api.libs.json.implicits.JsonXmlImplicits._
import play.api.libs.json._

val json = Json.parse(
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lazy val Scala212 = "2.12.3"
lazy val Scala212 = "2.12.4"
lazy val Scala211 = "2.11.11"
lazy val Scala210 = "2.10.6"

Expand All @@ -8,7 +8,7 @@ lazy val root = (project in file(".")).
organization := "org.micchon",
scalaVersion := Scala212,
crossScalaVersions := Scala212 :: Scala211 :: Scala210 :: Nil,
version := "0.2.1",
version := "0.3.0",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.3" % Test
) ++ (
Expand Down

0 comments on commit 039c4b6

Please sign in to comment.