Skip to content
This repository
branch: dpp_css
Fetching contributors…

Cannot retrieve contributors at this time

file 85 lines (68 sloc) 4.78 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
/*
* Copyright 2011 WorldWide Conferencing, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import sbt._
import Keys._
import net.liftweb.sbt.LiftBuildPlugin.{crossMapped, defaultOrMapped}


object Dependencies {

  type ModuleMap = String => ModuleID

  lazy val CVMapping2911 = crossMapped("2.9.2" -> "2.9.1", "2.9.1-1" -> "2.9.1")
  lazy val CVMappingAll = crossMapped("2.9.2" -> "2.9.1", "2.9.1-1" -> "2.9.1")

  lazy val slf4jVersion = "1.6.4"

  lazy val scalazGroup = defaultOrMapped("org.scalaz")
  lazy val scalazVersion = defaultOrMapped("6.0.4", "2.9.0" -> "6.0.RC2")

  // Compile scope:
  // Scope available in all classpath, transitive by default.
  lazy val commons_codec = "commons-codec" % "commons-codec" % "1.6"
  lazy val commons_fileupload = "commons-fileupload" % "commons-fileupload" % "1.2.2"
  lazy val commons_httpclient = "commons-httpclient" % "commons-httpclient" % "3.1"
  lazy val dispatch_http = "net.databinder" % "dispatch-http" % "0.7.8" cross CVMapping2911
  lazy val javamail = "javax.mail" % "mail" % "1.4.4"
  lazy val joda_time = "joda-time" % "joda-time" % "1.6.2" // TODO: 2.1
  lazy val htmlparser = "nu.validator.htmlparser" % "htmlparser" % "1.4"
  lazy val mongo_java_driver = "org.mongodb" % "mongo-java-driver" % "2.7.3"
  lazy val paranamer = "com.thoughtworks.paranamer" % "paranamer" % "2.4.1"
  lazy val scalajpa = "org.scala-libs" % "scalajpa" % "1.4" cross CVMappingAll
  lazy val scalap: ModuleMap = "org.scala-lang" % "scalap" % _
  lazy val scala_compiler: ModuleMap = "org.scala-lang" % "scala-compiler" % _
  lazy val scalaz_core: ModuleMap = sv => scalazGroup(sv) % "scalaz-core" % scalazVersion(sv) cross CVMappingAll
  lazy val slf4j_api = "org.slf4j" % "slf4j-api" % slf4jVersion
  lazy val squeryl = "org.squeryl" % "squeryl" % "0.9.5-1" cross crossMapped("2.9.1-1" -> "2.9.1", "2.8.2" -> "2.8.1")

  // Aliases
  lazy val mongo_driver = mongo_java_driver
  lazy val scalaz = scalaz_core


  // Provided scope:
  // Scope provided by container, available only in compile and test classpath, non-transitive by default.
  lazy val logback = "ch.qos.logback" % "logback-classic" % "1.0.1" % "provided"
  lazy val log4j = "log4j" % "log4j" % "1.2.16" % "provided"
  lazy val slf4j_log4j12 = "org.slf4j" % "slf4j-log4j12" % slf4jVersion % "provided"
  lazy val persistence_api = "javax.persistence" % "persistence-api" % "1.0" % "provided"
  lazy val servlet_api = "javax.servlet" % "servlet-api" % "2.5" % "provided"


  // Runtime scope:
  // Scope provided in runtime, available only in runtime and test classpath, not compile classpath, non-transitive by default.
  lazy val derby = "org.apache.derby" % "derby" % "10.7.1.1" % "test" //% "optional"
  lazy val h2database = "com.h2database" % "h2" % "1.2.147" % "test" //% "optional"

  // Aliases
  lazy val h2 = h2database


  // Test scope:
  // Scope available only in test classpath, non-transitive by default.
  // TODO: See if something alternative with lesser footprint can be used instead of mega heavy apacheds
  lazy val apacheds = "org.apache.directory.server" % "apacheds-server-integ" % "1.5.5" % "test" // TODO: 1.5.7
  lazy val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.26" % "test"
  lazy val jwebunit = "net.sourceforge.jwebunit" % "jwebunit-htmlunit-plugin" % "2.5" % "test"
  lazy val mockito_all = "org.mockito" % "mockito-all" % "1.9.0" % "test"
  lazy val scalacheck = "org.scalacheck" % "scalacheck" % "1.10.0" % "test" cross CVMappingAll
  lazy val specs2 = "org.specs2" % "specs2" % "1.11" % "test" cross CVMappingAll

}
Something went wrong with that request. Please try again.