-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
45 lines (38 loc) · 1.22 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
lazy val scabolic = taskKey[File]("Create the main run script")
lazy val cafesat = taskKey[File]("Create the cafesat run script")
lazy val runnerScriptTemplate =
"""#!/bin/sh
java -classpath "%s" %s "$@"
"""
scabolic := {
val cp = (fullClasspath in Runtime).value
val mainClass = "regolic.Main"
val contents = runnerScriptTemplate.format(cp.files.absString, mainClass)
val out = target.value / "scabolic"
IO.write(out, contents)
out.setExecutable(true)
out
}
cafesat := {
val cp = (fullClasspath in Runtime).value
val mainClass = "regolic.Main cafesat"
val contents = runnerScriptTemplate.format(cp.files.absString, mainClass)
val out = target.value / "cafesat"
IO.write(out, contents)
out.setExecutable(true)
out
}
lazy val root = (project in file(".")).
settings(
name := "CafeSat",
version := "0.01",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.1" % Test
).
dependsOn(scalaSmtLib)
lazy val scalaSmtLib = {
val commit = "004fab30fc294677a14429fad2cd95ab4d366416"
val githubLink = s"git://github.com/regb/scala-smtlib.git#$commit"
RootProject(uri(githubLink))
}