aboutsummaryrefslogtreecommitdiff
path: root/project/Dependencies.scala
blob: 14d837e49526660c8ddbf1a86ef51867b327d813 (plain) (blame)
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
/* =========================================================================================
 * Copyright © 2013-2016 the kamon project <http://kamon.io/>
 *
 * 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._

object Dependencies {

  val resolutionRepos = Seq(
    "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/",
    "Kamon Repository Snapshots" at "http://snapshots.kamon.io"
  )

  val aspectJ           = "org.aspectj"               %   "aspectjweaver"         % "1.8.10"
  val hdrHistogram      = "org.hdrhistogram"          %   "HdrHistogram"          % "2.1.9"
  val slf4jApi          = "org.slf4j"                 %   "slf4j-api"             % "1.7.7"
  val slf4jnop          = "org.slf4j"                 %   "slf4j-nop"             % "1.7.7"
  val logback           = "ch.qos.logback"            %   "logback-classic"       % "1.0.13"
  val scalatest         = "org.scalatest"             %%  "scalatest"             % "3.0.1"

  def akkaDependency(moduleName: String) = Def.setting {
    scalaBinaryVersion.value match {
      case "2.10" | "2.11"  => "com.typesafe.akka" %% s"akka-$moduleName" % "2.3.15"
      case "2.12"           => "com.typesafe.akka" %% s"akka-$moduleName" % "2.4.14"
    }
  }

  def compileScope   (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile")
  def testScope      (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "test")
  def providedScope  (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "provided")
  def optionalScope  (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile,optional")
}