diff --git a/README.md b/README.md index bf18102..fcb7efc 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,16 @@ Rate Limit Algorithm Based on the token bucket algorithm: http://en.wikipedia.org/wiki/Token_bucket -Installation +Getting play-guard ---------- -Not available from central repos yet. Just clone the project, checkout v1.4.0 and run "activator publish-local" in "module". -This will allow the sample app to fetch it from your local repo. -To include it in your app, copy the play-guard_2.11-x.x.jar file to your lib folder. +The current stable version is 1.4.1, which is cross-built against Scala 2.10.x and 2.11.x. + +Add the following dependency to your build file: + +```scala + "com.digitaltangible" %% "play-guard" % "1.4.1" +``` 1. GuardFilter ========== diff --git a/module/build.sbt b/module/build.sbt index ea7df93..d3c6553 100644 --- a/module/build.sbt +++ b/module/build.sbt @@ -1,15 +1,50 @@ name := """play-guard""" -organization := """com.sief""" +organization := """com.digitaltangible""" -version := "1.4.0" - -lazy val root = (project in file(".")).enablePlugins(PlayScala) +version := "1.4.1" scalaVersion := "2.11.5" +crossScalaVersions := Seq("2.10.4", "2.11.5") + +lazy val root = (project in file(".")).enablePlugins(PlayScala) + libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "2.2.1" % "test", "org.scalacheck" %% "scalacheck" % "1.11.6" % "test", "com.typesafe.akka" %% "akka-testkit" % "2.3.4" % "test" ) + + +publishMavenStyle := true + +publishArtifact in Test := false + +publishTo := { + val nexus = "https://oss.sonatype.org/" + if (version.value endsWith "SNAPSHOT") + Some("snapshots" at nexus + "content/repositories/snapshots") + else + Some("releases" at nexus + "service/local/staging/deploy/maven2") +} + +pomExtra := https://github.com/sief/play-guard + + + Apache 2 + http://www.apache.org/licenses/LICENSE-2.0 + repo + + + + git@github.com:sief/play-guard.git + scm:git:git@github.com:sief/play-guard.git + + + + sief + Simon Effing + https://www.linkedin.com/in/simoneffing + + \ No newline at end of file diff --git a/module/project/plugins.sbt b/module/project/plugins.sbt index 61d5bfb..5672e19 100644 --- a/module/project/plugins.sbt +++ b/module/project/plugins.sbt @@ -3,4 +3,7 @@ resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releas // The Play plugin addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8") +// for PGP signing +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") + diff --git a/samples/play-guard-sample/build.sbt b/samples/play-guard-sample/build.sbt index 8d5ecfb..f326639 100644 --- a/samples/play-guard-sample/build.sbt +++ b/samples/play-guard-sample/build.sbt @@ -7,7 +7,5 @@ lazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion := "2.11.5" libraryDependencies ++= Seq( - "com.sief" %% "play-guard" % "1.4.0" + "com.digitaltangible" %% "play-guard" % "1.4.1" ) - -resolvers ++= Seq("Local" at "file:///Users/simoneffing/.ivy2/local")