-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
37 lines (32 loc) · 1.12 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
lazy val $name;format="camel"$ = (project in file("."))
.settings(commonSettings: _*)
.settings(
name := "$name;format="normalize"$",
fork := true,
libraryDependencies ++= Seq(
"com.lihaoyi" %% "pprint" % "0.5.3",
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
)
lazy val commonSettings = Seq(
version := "0.1",
startYear := Some(2018),
scalaVersion := "$scala_version$",
scalacOptions ++= Seq("-target:jvm-1.8", "-deprecation", "-unchecked", "-Xcheckinit", "-encoding", "utf8", "-feature"),
scalacOptions ++= Seq(
"-language:implicitConversions",
"-language:postfixOps",
"-language:reflectiveCalls",
"-language:higherKinds"
),
// configure prompt to show current project
shellPrompt := { s => Project.extract(s).currentProject.id + " > " },
initialCommands in console :=
"""
|import java.nio.file._
|import scala.concurrent._
|import scala.concurrent.duration._
|import ExecutionContext.Implicits.global
""".stripMargin
)