2016-09-25 04:06:36 +00:00
|
|
|
import sbt._
|
|
|
|
|
|
|
|
object Dependencies {
|
|
|
|
/* ********************************************************************** */
|
|
|
|
/* Akka */
|
|
|
|
/* ********************************************************************** */
|
2020-03-29 17:37:08 +00:00
|
|
|
final val akkaVersion = "2.5.26"
|
2016-09-25 04:06:36 +00:00
|
|
|
|
|
|
|
val akkaActor = "com.typesafe.akka" %% "akka-actor" % akkaVersion
|
|
|
|
val akkaStream = "com.typesafe.akka" %% "akka-stream" % akkaVersion
|
|
|
|
|
|
|
|
/* ********************************************************************** */
|
|
|
|
/* Utility Dependencies */
|
|
|
|
/* ********************************************************************** */
|
2020-03-29 17:37:08 +00:00
|
|
|
final val slf4jVersion = "1.7.28"
|
|
|
|
final val log4sVersion = "1.8.2"
|
2017-10-08 07:05:12 +00:00
|
|
|
final val logbackVersion = "1.2.3"
|
|
|
|
final val commonsVfsVersion = "2.2"
|
2016-09-25 04:06:36 +00:00
|
|
|
final val commonsIoVersion = "2.4"
|
2017-10-08 07:05:12 +00:00
|
|
|
final val spireVersion = "0.13.0"
|
2018-03-18 00:56:12 +00:00
|
|
|
final val groovyVersion = "2.4.13"
|
2020-03-29 17:37:08 +00:00
|
|
|
final val scalaJava8Version = "0.9.1"
|
2016-09-25 04:06:36 +00:00
|
|
|
final val scalaParserVersion = "1.0.4"
|
|
|
|
final val scalaXmlVersion = "1.0.5"
|
2020-03-29 17:37:08 +00:00
|
|
|
final val gerweckUtilVersion = "5.0.1"
|
|
|
|
final val catsVersion = "2.1.1"
|
2018-01-11 04:08:36 +00:00
|
|
|
final val shapelessVersion = "2.3.3"
|
2016-09-25 04:06:36 +00:00
|
|
|
final val scallopVersion = "1.0.1"
|
|
|
|
|
|
|
|
val log4s = "org.log4s" %% "log4s" % log4sVersion
|
|
|
|
val slf4j = "org.slf4j" % "slf4j-api" % slf4jVersion
|
|
|
|
val jclBridge = "org.slf4j" % "jcl-over-slf4j" % slf4jVersion
|
|
|
|
val log4jBridge = "org.slf4j" % "log4j-over-slf4j" % slf4jVersion
|
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % logbackVersion
|
|
|
|
val spire = "org.spire-math" %% "spire" % spireVersion
|
|
|
|
val commonsIo = "commons-io" % "commons-io" % commonsIoVersion
|
2020-12-13 15:38:40 +00:00
|
|
|
// val groovy = "org.codehaus.groovy" % "groovy-all" % groovyVersion
|
2016-09-25 04:06:36 +00:00
|
|
|
val gerweckUtil = "org.gerweck.scala" %% "gerweck-utils" % gerweckUtilVersion
|
|
|
|
val gerweckUtilAkka = "org.gerweck.scala" %% "gerweck-utils-akka" % gerweckUtilVersion
|
2020-12-13 15:38:40 +00:00
|
|
|
// val scalaJava8 = "org.scala-lang.modules" %% "scala-java8-compat" % scalaJava8Version
|
2018-01-11 05:32:08 +00:00
|
|
|
val cats = "org.typelevel" %% "cats-core" % catsVersion
|
2016-09-25 04:06:36 +00:00
|
|
|
val shapeless = "com.chuusai" %% "shapeless" % shapelessVersion
|
|
|
|
val scallop = "org.rogach" %% "scallop" % scallopVersion
|
|
|
|
|
|
|
|
val commonsVfs = {
|
|
|
|
val base = "org.apache.commons" % "commons-vfs2" % commonsVfsVersion
|
|
|
|
base.exclude("commons-logging", "commons-logging")
|
|
|
|
.exclude("org.apache.maven.scm", "maven-scm-provider-svnexe")
|
|
|
|
.exclude("org.apache.maven.scm", "maven-scm-api")
|
|
|
|
base
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Use like this: libraryDependencies <++= (scalaBinaryVersion) (scalaParser) */
|
|
|
|
def scalaParser(optional: Boolean): String => Seq[ModuleID] = { scalaBinaryVersion: String =>
|
|
|
|
optionalize(optional) {
|
|
|
|
scalaBinaryVersion match {
|
|
|
|
case "2.11" => Seq("org.scala-lang.modules" %% "scala-parser-combinators" % scalaParserVersion % "optional")
|
|
|
|
case _ => Seq.empty
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def scalaXml(optional: Boolean)(scalaBinaryVersion: String): String => Seq[ModuleID] = { scalaBinaryVersion: String =>
|
|
|
|
optionalize(optional) {
|
|
|
|
scalaBinaryVersion match {
|
|
|
|
case "2.11" => Seq("org.scala-lang.modules" %% "scala-xml" % scalaXmlVersion % "optional")
|
|
|
|
case _ => Seq.empty
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ********************************************************************** */
|
|
|
|
/* Testing Dependencies */
|
|
|
|
/* ********************************************************************** */
|
|
|
|
final val scalaCheckVersion = "1.12.2"
|
|
|
|
final val scalaTestVersion = "2.2.4"
|
|
|
|
|
|
|
|
val scalaCheck = "org.scalacheck" %% "scalacheck" % scalaCheckVersion
|
|
|
|
val scalaTest = "org.scalatest" %% "scalatest" % scalaTestVersion
|
|
|
|
|
|
|
|
/* ********************************************************************** */
|
|
|
|
/* ScalaFX */
|
|
|
|
/* ********************************************************************** */
|
2020-12-13 15:38:40 +00:00
|
|
|
final val scalaFxVersion = "14-R19"
|
2016-09-25 04:06:36 +00:00
|
|
|
|
|
|
|
val scalaFx = "org.scalafx" %% "scalafx" % scalaFxVersion
|
|
|
|
|
|
|
|
/* ********************************************************************** */
|
|
|
|
/* Helpers */
|
|
|
|
/* ********************************************************************** */
|
|
|
|
private[this] def optionalize(optional: Boolean)(f: => Seq[ModuleID]): Seq[ModuleID] = {
|
|
|
|
if (optional) {
|
|
|
|
f map { _ % "optional" }
|
|
|
|
} else {
|
|
|
|
f
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private[this] def noCL(m: ModuleID) = (
|
|
|
|
m exclude("commons-logging", "commons-logging")
|
|
|
|
exclude("commons-logging", "commons-logging-api")
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
|