-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
45 lines (36 loc) · 1.37 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
name := "hltri-ml"
organization := "edu.utdallas.hltri"
//lazy val resolverSettings = Seq(
// resolvers += "artifactory" at "http://pnfs.hlt.utdallas.edu:8081/artifactory/repo/"
//)
lazy val commonSettings = Seq(
publishTo := sonatypePublishTo.value,
// Use latest scala version
scalaVersion := "2.11.8",
// Connects STDIN to sbt during forked runs
connectInput in run := true,
// Get rid of output prefix
outputStrategy in run := Some(StdoutOutput),
// When using sbt-run, fork to a new process instead of running within the sbt process
fork in run := true,
// Set default java options: enable assertions, set memory, set server mode
javaOptions ++= Seq("-ea", "-esa", "-Xmx14g", "-server"),
// Set javac options
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint:unchecked"),
// Always export a .jar rather than .class files
exportJars := true,
// Disable putting scala version in jar's name
crossPaths := false,
// Use consistent version
version := "1.0.0",
// utils
libraryDependencies += "edu.utdallas.hltri" % "hltri-util" % "1.0.1"
)
lazy val `hltri-ml` = (project in file("."))
.aggregate(`ml-api`, `ml-core`)
.settings(commonSettings)
lazy val `ml-api` = (project in file("hltri-ml-api"))
.settings(commonSettings)
lazy val `ml-core` = (project in file("hltri-ml-core"))
.dependsOn(`ml-api`)
.settings(commonSettings)