Skip to content

Commit

Permalink
adding picking to dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pathikrit committed Apr 18, 2014
1 parent 105b461 commit 12a6496
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dijon - Dynamic Json in Scala
* No external [dependencies](build.sbt)
* Less than [100 lines](src/main/scala/com/github/pathikrit/dijon/package.scala) of code
* Well [tested][1]
* Performant: uses [scala-pickling](https://github.com/scala/pickling) to generate inlined serialization code at compile-time
* Why yet another Scala json library? Well, code speaks more than thousand words:

```scala
Expand Down Expand Up @@ -105,7 +106,7 @@ Add the following to your `build.sbt` to use `dijon`:
```scala
resolvers += "Sonatype releases" at "http://oss.sonatype.org/content/repositories/releases/"

libraryDependency += "com.github.pathikrit" %% "dijon" % "0.2.3"
libraryDependency += "com.github.pathikrit" %% "dijon" % "0.3.0"
```

TODO
Expand All @@ -116,6 +117,5 @@ TODO
* YAML interpolator
* Macro for type inference to induce compile-time errors where possible
* JSON string interpolator fills in braces, quotes and commas etc
* Scala 2.11 compatibility without warnings

[1]: src/test/scala/com/github/pathikrit/dijon/DijonSpec.scala
27 changes: 23 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ sonatypeSettings

name := "dijon"

version := "0.2.3"
version := "0.3.0"

organization := "com.github.pathikrit"

homepage := Some(url("http://github.com/pathikrit/dijon"))

description := "Boiler-free JSON wrangling using Scala dynamic types"

scalaVersion := "2.10.3"
scalaVersion := "2.10.4"

crossScalaVersions := Seq("2.10.4", "2.11.0-RC4")

scalacOptions ++= Seq(
"-unchecked", "-deprecation", "-feature",
Expand All @@ -23,9 +27,22 @@ CoverallsPlugin.coverallsSettings

CoverallsPlugin.CoverallsKeys.coverallsToken := Some("m1ICpWHwSZMMvgqeKbUaRE6RFre1p3zws")

libraryDependencies ++= Seq("org.specs2" %% "specs2" % "2.3.10" % "test")

libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _)
autoCompilerPlugins := true

resolvers ++= Seq(Resolver.sonatypeRepo("snapshots"))

libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang" %% "scala-pickling" % "0.8.0-SNAPSHOT",
"org.specs2" %% "specs2" % "2.3.10" % "test",
compilerPlugin("org.scalamacros" % "paradise" % "2.0.0-M7" cross CrossVersion.full)
)

libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 10)) => Seq("org.scalamacros" %% "quasiquotes" % "2.0.0-M7")
case _ => Seq()
})

pomExtra := {
<url>http://github.com/pathikrit/dijon</url>
Expand All @@ -48,3 +65,5 @@ pomExtra := {
</developer>
</developers>
}

licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
2 changes: 2 additions & 0 deletions src/main/scala/com/github/pathikrit/dijon/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import scala.collection.mutable
import scala.reflect.runtime.universe._
import scala.util.parsing.json.{JSON, JSONObject}

import scala.pickling._

import com.github.pathikrit.dijon.UnionType.{, }

package object dijon {
Expand Down

0 comments on commit 12a6496

Please sign in to comment.