This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
67 lines (56 loc) · 1.65 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
parallelExecution in Global := false
enablePlugins(GitVersioning)
git.useGitDescribe := true
git.gitDescribedVersion <<= git.gitDescribedVersion((v) => v.map(_.drop(1)))
lazy val commonSettings = Seq(
organization := "com.omegaup",
scalaVersion := "2.11.5",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
exportJars := true,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.1.1",
"ch.qos.logback" % "logback-core" % "1.1.1",
"com.omegaup" %% "libinteractive" % "latest.integration",
"commons-codec" % "commons-codec" % "1.9",
"io.spray" %% "spray-json" % "1.3.1",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.slf4j" % "log4j-over-slf4j" % "1.7.6"
),
ProguardKeys.proguardVersion in Proguard := "5.2"
)
lazy val backend = project.in(file("."))
.aggregate(common, runner, grader)
.settings(commonSettings: _*)
.settings(
name := "omegaUp"
)
lazy val common_macros = project
.settings(commonSettings: _*)
.settings(
name := "common_macros"
)
lazy val common = project
.dependsOn(common_macros)
.settings(commonSettings: _*)
.settings(
name := "common"
)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "com.omegaup"
)
lazy val runner = project
.dependsOn(common % "compile->compile;test->test")
.settings(commonSettings: _*)
.settings(
name := "runner"
)
lazy val grader = project
.dependsOn(common % "compile->compile;test->test", runner)
.settings(commonSettings: _*)
.settings(
name := "grader"
)
mainClass in (Compile, run) := Some("com.omegaup.Service")
test in assembly := {}