summaryrefslogtreecommitdiff
path: root/src/jline/build.sbt
blob: 873f7574f129c1daf6f36fe66d25d94792029322 (plain) (blame)
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
seq(ProguardPlugin.proguardSettings :_*)

name := "jline"

organization := "org.scala-lang"

version := "2.11.0-SNAPSHOT"

scalaVersion := "2.10.1"

// Only need these because of weird testing jline issues.
retrieveManaged := true

parallelExecution in Test := false

libraryDependencies ++= Seq(
	"org.fusesource.jansi" % "jansi" % "1.10",
	"com.novocode" % "junit-interface" % "0.9" % "test->default"
)

javacOptions ++= Seq("-source", "1.5", "-target", "1.5")

proguardOptions ++= Seq(
  "-dontshrink",
  "-keep class *",
  "-keepdirectories"
)

proguardInJars := Nil

makeInJarFilter ~= { prevFilter =>
  val jansiFilter = List(
    "!META-INF/MANIFEST.MF",
    "org/fusesource/hawtjni/runtime",
    "org/fusesource/hawtjni/runtime/Callback.class",
    "org/fusesource/hawtjni/runtime/Library.class",
    "!org/fusesource/hawtjni/**",
    "!META-INF/maven/org.fusesource.hawtjni",
    "!META-INF/maven/org.fusesource.jansi",
    "!META-INF/maven/org.fusesource.hawtjni/**",
    "!META-INF/maven/org.fusesource.jansi/**"
  ).mkString(",")
  // In sbt 0.9.8 the scala-library.jar line was not necessary,
  // but in 0.9.9 it started showing up here.  Who knows.
  file =>
    if (file startsWith "jansi-") jansiFilter
    else if (file == "scala-library.jar") "!**"
    else prevFilter(file)
}