-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
56 lines (37 loc) · 1.1 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
48
49
50
51
52
53
organization := "training.scala"
name := "air-scala"
scalaVersion := Version.scala
// The Typesafe repository
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Dependencies.airScala
// Simplify console work in test and main by importing our package space
initialCommands in console := """
import training.scala.air_scala._
import training.scala.air_scala.domain._
"""
// Run and compilation settings
scalacOptions ++= List(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.6",
"-encoding", "UTF-8",
"-Xfatal-warnings",
"-feature"
)
javacOptions in (Compile, compile) ++= List(
"-source", "1.7",
"-target", "1.7",
"-Xlint:unchecked",
"-Xlint:deprecation",
"-Xlint:-options"
)
javacOptions in doc := Seq()
javaOptions += "-Xmx2G"
fork in run := true
parallelExecution in Test := false
parallelExecution in ThisBuild := false
// Eclipse settings to ease the pain
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource
EclipseKeys.eclipseOutput := Some(".target")
EclipseKeys.withSource := true