|
Play Framework/Scala example source code file (Dependencies.scala)
The Dependencies.scala Play Framework example source code/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ import sbt._ object Dependencies { // Some common dependencies here so they don't need to be declared over and over val specsVersion = "2.3.12" val specsBuild = Seq( "org.specs2" %% "specs2-core" % specsVersion, "org.specs2" %% "specs2-junit" % specsVersion, "org.specs2" %% "specs2-mock" % specsVersion, "org.specs2" %% "specs2-matcher-extra" % specsVersion ) val specsSbt = specsBuild val guava = "com.google.guava" % "guava" % "16.0.1" val findBugs = "com.google.code.findbugs" % "jsr305" % "2.0.3" // Needed by guava val mockitoAll = "org.mockito" % "mockito-all" % "1.9.5" val h2database = "com.h2database" % "h2" % "1.3.175" val acolyteVersion = "1.0.21" val acolyte = "org.eu.acolyte" % "jdbc-driver" % acolyteVersion val jdbcDeps = Seq( "com.jolbox" % "bonecp" % "0.8.0.RELEASE", h2database, acolyte % "test", "tyrex" % "tyrex" % "1.0.1") ++ specsBuild.map(_ % "test") val javaJdbcDeps = Seq(acolyte % "test") val ebeanDeps = Seq( "org.avaje.ebeanorm" % "avaje-ebeanorm" % "3.3.4" exclude ("javax.persistence", "persistence-api"), "org.avaje.ebeanorm" % "avaje-ebeanorm-agent" % "3.2.2" exclude ("javax.persistence", "persistence-api") ) val jpaDeps = Seq( "org.hibernate.javax.persistence" % "hibernate-jpa-2.0-api" % "1.0.1.Final") val javaDeps = Seq( "org.yaml" % "snakeyaml" % "1.13", // 5.1.0 upgrade notes: need to add JEE dependencies, eg EL "org.hibernate" % "hibernate-validator" % "5.0.3.Final", ("org.springframework" % "spring-context" % "4.0.3.RELEASE" notTransitive ()) .exclude("org.springframework", "spring-aop") .exclude("org.springframework", "spring-beans") .exclude("org.springframework", "spring-core") .exclude("org.springframework", "spring-expression") .exclude("org.springframework", "spring-asm"), ("org.springframework" % "spring-core" % "4.0.3.RELEASE" notTransitive ()) .exclude("org.springframework", "spring-asm") .exclude("commons-logging", "commons-logging"), ("org.springframework" % "spring-beans" % "4.0.3.RELEASE" notTransitive ()) .exclude("org.springframework", "spring-core"), "org.javassist" % "javassist" % "3.18.2-GA", ("org.reflections" % "reflections" % "0.9.8" notTransitive ()) .exclude("javassist", "javassist"), guava, findBugs, "org.apache.tomcat" % "tomcat-servlet-api" % "8.0.5") ++ specsBuild.map(_ % "test") val javaTestDeps = Seq( "junit" % "junit" % "4.11" % "test", "com.novocode" % "junit-interface" % "0.11-RC1" % "test", "org.easytesting" % "fest-assert" % "1.4" % "test", mockitoAll % "test") val runtime = Seq( "org.slf4j" % "slf4j-api" % "1.7.6", "org.slf4j" % "jul-to-slf4j" % "1.7.6", "org.slf4j" % "jcl-over-slf4j" % "1.7.6", "ch.qos.logback" % "logback-core" % "1.1.1", "ch.qos.logback" % "logback-classic" % "1.1.1", "com.typesafe.akka" %% "akka-actor" % "2.3.3", "com.typesafe.akka" %% "akka-slf4j" % "2.3.3", "org.scala-stm" %% "scala-stm" % "0.7", "commons-codec" % "commons-codec" % "1.9", "joda-time" % "joda-time" % "2.3", "org.joda" % "joda-convert" % "1.6", "org.apache.commons" % "commons-lang3" % "3.3.2", "com.fasterxml.jackson.core" % "jackson-core" % "2.3.2", "com.fasterxml.jackson.core" % "jackson-annotations" % "2.3.2", "com.fasterxml.jackson.core" % "jackson-databind" % "2.3.2", "xerces" % "xercesImpl" % "2.11.0", "javax.transaction" % "jta" % "1.1", guava % "test", "org.scala-lang" % "scala-reflect" % BuildSettings.buildScalaVersion) ++ specsBuild.map(_ % "test") ++ javaTestDeps val netty = Seq( "io.netty" % "netty" % "3.9.2.Final", "com.typesafe.netty" % "netty-http-pipelining" % "1.1.2" ) val link = Seq( "org.javassist" % "javassist" % "3.18.2-GA") val routersCompilerDependencies = Seq( "commons-io" % "commons-io" % "2.0.1" ) ++ specsSbt.map(_ % "test") private def sbtPluginDep(moduleId: ModuleID) = { moduleId.extra( "sbtVersion" -> BuildSettings.buildSbtVersionBinaryCompatible, "scalaVersion" -> BuildSettings.buildScalaBinaryVersionForSbt ) } val sbtDependencies = Seq( "org.scala-lang" % "scala-reflect" % BuildSettings.buildScalaVersionForSbt % "provided", "com.typesafe" % "config" % "1.2.1", "org.mozilla" % "rhino" % "1.7R4", ("com.google.javascript" % "closure-compiler" % "v20130603") .exclude("args4j", "args4j") .exclude("com.google.protobuf", "protobuf-java") .exclude("com.google.code.findbugs", "jsr305"), guava, "org.avaje.ebeanorm" % "avaje-ebeanorm-agent" % "3.2.2" exclude ("javax.persistence", "persistence-api"), h2database, "org.javassist" % "javassist" % "3.18.2-GA", "net.contentobjects.jnotify" % "jnotify" % "0.94", sbtPluginDep("com.typesafe.sbt" % "sbt-twirl" % "1.0.2"), sbtPluginDep("com.typesafe.sbt" % "sbt-play-enhancer" % "1.0.1"), sbtPluginDep("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0"), sbtPluginDep("com.github.mpeltonen" % "sbt-idea" % "1.5.1"), sbtPluginDep("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1"), sbtPluginDep("com.typesafe.sbt" % "sbt-js-engine" % "1.0.1"), sbtPluginDep("com.typesafe.sbt" % "sbt-webdriver" % "1.0.0") ) ++ specsSbt.map(_ % "test") val playDocsDependencies = Seq( "com.typesafe.play" %% "play-doc" % "1.1.0", "org.webjars" % "jquery" % "2.1.0-2" % "webjars", "org.webjars" % "prettify" % "4-Mar-2013" % "webjars" ) val iterateesDependencies = Seq( "org.scala-stm" %% "scala-stm" % "0.7", "com.typesafe" % "config" % "1.2.1") ++ specsBuild.map(_ % "test") val jsonDependencies = Seq( "joda-time" % "joda-time" % "2.3", "org.joda" % "joda-convert" % "1.6", "com.fasterxml.jackson.core" % "jackson-annotations" % "2.3.2", "com.fasterxml.jackson.core" % "jackson-core" % "2.3.2", "com.fasterxml.jackson.core" % "jackson-databind" % "2.3.2", "org.scala-lang" % "scala-reflect" % BuildSettings.buildScalaVersion) ++ specsBuild.map(_ % "test") val scalacheckDependencies = Seq( "org.specs2" %% "specs2-scalacheck" % specsVersion % "test", "org.scalacheck" %% "scalacheck" % "1.11.3" % "test" ) val playServerDependencies = Seq( guava % "test" ) ++ specsBuild.map(_ % "test") val testDependencies = Seq("junit" % "junit" % "4.11") ++ specsBuild ++ Seq( "com.novocode" % "junit-interface" % "0.11-RC1", guava, findBugs, ("org.fluentlenium" % "fluentlenium-core" % "0.10.2") .exclude("org.jboss.netty", "netty") ) val integrationTestDependencies = scalacheckDependencies ++ Seq( "org.databene" % "contiperf" % "2.2.0" % "test" ) val playCacheDeps = "net.sf.ehcache" % "ehcache-core" % "2.6.8" +: specsBuild.map(_ % "test") val playWsDeps = Seq( guava, "com.ning" % "async-http-client" % "1.8.8", "oauth.signpost" % "signpost-core" % "1.2.1.2", "oauth.signpost" % "signpost-commonshttp4" % "1.2.1.2") ++ specsBuild.map(_ % "test") :+ mockitoAll % "test" val anormDependencies = specsBuild.map(_ % "test") ++ Seq( "com.jsuereth" %% "scala-arm" % "1.4", h2database % "test", "org.eu.acolyte" %% "jdbc-scala" % acolyteVersion % "test", "com.chuusai" % "shapeless" % "2.0.0" % "test" cross CrossVersion.binaryMapped { case "2.10" => BuildSettings.buildScalaVersion case x => x } ) val playDocsSbtPluginDependencies = Seq( "com.typesafe.play" %% "play-doc" % "1.1.0" ) } Other Play Framework source code examplesHere is a short list of links related to this Play Framework Dependencies.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.