-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (38 loc) · 1.49 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
import sbt._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import de.heikoseeberger.sbtheader.HeaderPattern
import scalariform.formatter.preferences.AlignSingleLineCaseStatements
scalaVersion := "2.11.11"
enablePlugins(ScalaNativePlugin, AutomateHeaderPlugin)
// Disable GC since the CLI is a short-lived process.
nativeGC := "none"
libraryDependencies ++= List(
"com.github.scopt" %%% "scopt" % "3.7.0",
"io.argonaut" %%% "argonaut" % "6.3-SNAPSHOT",
"com.lihaoyi" %%% "utest" % "0.4.8" % "test"
)
ScalariformKeys.preferences :=
ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
HeaderPlugin.autoImport.headers := Map(
"scala" -> (
HeaderPattern.cStyleBlockComment,
"""|/*
| * Copyright © 2014-2016 Lightbend, Inc. All rights reserved.
| * No information contained herein may be reproduced or transmitted in any form
| * or by any means without the express written permission of Lightbend, Inc.
| */
|
|""".stripMargin
),
"conf" -> (
HeaderPattern.hashLineComment,
"""|# Copyright © 2014-2016 Lightbend, Inc. All rights reserved.
|# No information contained herein may be reproduced or transmitted in any form
|# or by any means without the express written permission of Lightbend, Inc.
|
|""".stripMargin
)
)
testFrameworks += new TestFramework("utest.runner.Framework")