forked from playframework/play-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on global Play object playframework#147
- must be initialized manually
- Loading branch information
Showing
14 changed files
with
142 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,33 @@ | ||
import play.core.PlayVersion | ||
|
||
name := "play-statsd" | ||
|
||
organization := "com.typesafe.play.plugins" | ||
|
||
version := "2.3.0" | ||
|
||
scalaVersion := "2.11.1" | ||
version := "2.4.0" | ||
|
||
crossScalaVersions := Seq("2.11.1", "2.10.4") | ||
scalaVersion in ThisBuild := "2.11.8" | ||
|
||
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | ||
|
||
libraryDependencies ++= Seq( | ||
"com.typesafe.play" %% "play" % "2.3.0" % "provided", | ||
"com.typesafe.play" %% "play-test" % "2.3.0" % "test" | ||
"com.typesafe.play" %% "play" % PlayVersion.current % "provided", | ||
"com.typesafe.play" %% "play-test" % PlayVersion.current % "test", | ||
specs2 % "test" | ||
) | ||
|
||
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases" | ||
|
||
parallelExecution in Test := false | ||
|
||
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v") | ||
|
||
publishTo <<= (version) { version: String => | ||
publishTo <<= version { version: String => | ||
val nexus = "https://private-repo.typesafe.com/typesafe/" | ||
if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "maven-snapshots/") | ||
else Some("releases" at nexus + "maven-releases/") | ||
} | ||
|
||
javacOptions ++= Seq("-source", "1.6", "-target", "1.6", "-Xlint:unchecked", "-encoding", "UTF-8") | ||
|
||
scalacOptions += "-deprecation" | ||
|
||
lazy val root = project in file(".") | ||
lazy val root: Project = project in file(".") aggregate sample | ||
|
||
lazy val sample = (project in file("sample/sample-statsd")) | ||
.enablePlugins(PlayScala) | ||
.settings( | ||
Keys.fork in Test := false | ||
).dependsOn(root).aggregate(root) | ||
lazy val sample = project in file("sample/sample-statsd") dependsOn (LocalRootProject % "test->test;compile->compile") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.5 | ||
sbt.version=0.13.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import play.api.Application | ||
import play.api.mvc.WithFilters | ||
import play.modules.statsd.api.StatsdFilter | ||
import play.modules.statsd.api.{Statsd, StatsdFilter} | ||
|
||
object Global extends WithFilters(new StatsdFilter) | ||
object Global extends WithFilters(new StatsdFilter) { | ||
override def onStart(app: Application) = { | ||
Statsd.init(app.configuration) | ||
super.onStart(app) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
enablePlugins(PlayScala) | ||
|
||
libraryDependencies += ws | ||
|
||
Keys.fork in Test := false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
statsd/src/main/java/play/modules/statsd/StatsdFilter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.