This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
forked from ivan-cukic/litef-conductor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
93 lines (74 loc) · 3.45 KB
/
build.sbt
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
86
87
88
89
90
91
92
93
import AssemblyKeys._
import com.github.retronym.SbtOneJar._
name := """conductor"""
version := "2.05.03"
scalaVersion := "2.10.3"
resolvers += "spray repo" at "http://repo.spray.io"
resolvers += "spray nightlies" at "http://nightlies.spray.io"
resolvers += "litef nightlies" at "https://raw.githubusercontent.com/ivan-cukic/litef-maven-repository/master/snapshots/"
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoKeys ++= Seq[BuildInfoKey](
"gitHash" -> new java.lang.Object() {
override def toString(): String = {
try {
val extracted = new java.io.InputStreamReader(
java.lang.Runtime.getRuntime().exec("git rev-parse HEAD").getInputStream())
(new java.io.BufferedReader(extracted)).readLine()
} catch {
case t: Throwable => "get git hash failed"
}
}
}.toString()
)
buildInfoPackage := "info"
libraryDependencies ++= {
object V {
val spray = "1.3.1"
val akka = "2.3.9"
}
Seq(
"com.typesafe.akka" %% "akka-actor" % V.akka withSources,
"com.typesafe.akka" %% "akka-slf4j" % V.akka withSources,
"com.typesafe.akka" %% "akka-testkit" % V.akka % "test",
"ch.qos.logback" % "logback-classic" % "1.0.13" withSources,
"io.spray" % "spray-can" % V.spray withSources,
"io.spray" % "spray-routing" % V.spray withSources,
// "io.spray" % "spray-testkit" % V.spray % "test",
"io.spray" %% "spray-json" % "1.2.3" withSources,
"io.spray" % "spray-client" % V.spray withSources,
"io.spray" % "spray-http" % V.spray withSources,
// "org.specs2" %% "specs2" % "1.14" % "test",
// "com.novocode" % "junit-interface" % "0.7" % "test->default",
"com.typesafe.slick" %% "slick" % "2.0.0" withSources,
// "org.slf4j" % "slf4j-nop" % "1.6.4" withSources,
"postgresql" % "postgresql" % "9.1-901.jdbc4" withSources,
// "org.scalatest" % "scalatest_2.10" % "2.0",
"ivan" %% "javelin-ontologies" % "2.0",
"ivan" %% "javelin" % "2.0",
"ivan" %% "scala-utils" % "2.0",
"org.apache.tika" % "tika-core" % "1.12",
"org.apache.tika" % "tika-parsers" % "1.12",
"commons-io" % "commons-io" % "2.4",
//"commons-lang" % "commons-lang" % "2.6",
"com.googlecode.json-simple" % "json-simple" % "1.1.1",
"org.jsoup" % "jsoup" % "1.8.3"
)
}
libraryDependencies <+= scalaVersion( "org.scala-lang" % "scala-compiler" % _ )
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-Xlint",
"-Ywarn-dead-code",
"-language:_",
"-target:jvm-1.7",
"-encoding", "UTF-8",
"-Xfatal-warnings"
)
seq(Revolver.settings: _*)
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")
Twirl.settings
javaOptions in Revolver.reStart += "-Dconfig.file=./application.conf"
oneJarSettings