-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
47 lines (40 loc) · 1.6 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
fork in run := true
connectInput in run := true
cancelable in Global := true
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature"
)
//include ./conf in classpath
unmanagedResourceDirectories in Compile += baseDirectory.value / "conf"
unmanagedResourceDirectories in Compile += baseDirectory.value / "compile-scripts"
lazy val configDir = settingKey[File]("The config directory of mope")
lazy val cleanConfig = taskKey[Unit]("Cleans user's config directory of mope")
cleanConfig := IO.delete(configDir.value)
sourceGenerators in Compile += Def.task {
val dir:File = (sourceManaged in Compile).value
InfoGenerator.generateProjectInfo(dir, Seq(
"name" -> (name in root).value,
"version" -> (version in root).value,
"organization" -> (organization in root).value,
"copyright" -> "() 2016-2018 Nicola Justus"))
}.taskValue
lazy val root = Project(id = "moie-server", base = file(".")).
settings(
organization := "de.thm.mote",
name := "MoPE-server",
version := "0.7.2",
scalaVersion := "2.12.8",
javacOptions ++= Seq("-source", "1.8"),
mainClass in Compile := Some("de.thm.mope.MoPE"),
configDir := new File(System.getProperty("user.home")) / ".mope",
resolvers += Dependencies.jitpack,
libraryDependencies ++= Dependencies.usedDependencies,
parallelExecution in Test := false,
aggregate in Test := false
).
dependsOn(Dependencies.ewsProject, Dependencies.recentlyProject)
mainClass in assembly := (mainClass in Compile).value
assemblyJarName in assembly := s"mope-server-${version.value}.jar"
test in assembly := {} //skip test's during packaging