forked from foundweekends/conscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
42 lines (31 loc) · 1.14 KB
/
build.sbt
File metadata and controls
42 lines (31 loc) · 1.14 KB
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
seq(conscriptSettings :_*)
organization := "net.databinder"
version := "0.3.4"
name := "conscript"
publishTo := Some("Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/")
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
scalaVersion := "2.9.1"
libraryDependencies <<= (libraryDependencies, scalaVersion) {
(deps, sv) => deps ++ Seq(
"net.databinder" %% "dispatch-http" % "0.8.5",
"net.databinder" %% "dispatch-lift-json" % "0.8.5",
"com.github.scopt" %% "scopt" % "1.1.2",
"org.scala-lang" % "scala-swing" % sv
)
}
seq(ProguardPlugin.proguardSettings :_*)
proguardOptions ++= Seq(
"-keep class conscript.* { *; }",
"-keep class org.apache.commons.logging.impl.LogFactoryImpl { *; }",
"-keep class org.apache.commons.logging.impl.Jdk14Logger { *; }"
)
minJarPath <<= (target, version) { (t,v) =>
t / ("conscript-" + v + ".jar")
}
sourceGenerators in Compile <+= (sourceManaged in Compile, version) map { (d, v) =>
val file = d / "version.scala"
IO.write(file, """package conscript
|object Version { val version = "%s" }
|""".stripMargin.format(v))
Seq(file)
}