-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
44 lines (32 loc) · 1.13 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
import AssemblyKeys._
seq(assemblySettings: _*)
name := "EXProxy"
version := "0.8.0"
scalaVersion := "2.10.1"
scalacOptions ++= Seq("-unchecked", "-deprecation" )
mainClass in assembly := Some("com.exproxy.ControlPanel")
jarName in assembly := "exproxy.jar"
libraryDependencies ++= Seq(
"commons-codec" % "commons-codec" % "1.7"
,"commons-logging" % "commons-logging" % "1.1.2"
,"commons-collections" % "commons-collections" % "3.2.1"
// ,"org.apache.httpcomponents" % "httpclient" % "4.1.3"
,"commons-httpclient" % "commons-httpclient" % "3.1"
,"org.scalatest" %% "scalatest" % "1.9.1" % "test"
,"junit" % "junit" % "4.10" % "test"
)
initialCommands in console := """import com.exproxy._"""
sourceGenerators in Compile <+=
(sourceManaged in Compile, version, name, jarName in assembly) map {
(dir, version, projectname, jarexe) =>
val file = dir / "dummy" / "MetaInfo.scala"
IO.write(file,
"""package com.exproxy
|object MetaInfo {
| val version="%s"
| val project="%s"
| val jarbasename="%s"
|}
|""".stripMargin.format(version, projectname, jarexe.split("[.]").head) )
Seq(file)
}