This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
82 lines (65 loc) · 2.03 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cancelable := true
crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.11", "2.13.2")
developers := List(
Developer("mslinn",
"Mike Slinn",
"mslinn@micronauticsresearch.com",
url("https://github.com/mslinn")
)
)
// define the statements initially evaluated when entering 'console', 'console-quick', but not 'console-project'
initialCommands in console := """import scala.util.{Failure, Success, Try}
|import com.micronautics.utils.Implicits._
|""".stripMargin
javacOptions ++= Seq(
"-Xlint:deprecation",
"-Xlint:unchecked",
"-source", "1.8",
"-target", "1.8",
"-g:vars"
)
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "28.1-jre" withSources(),
//
"org.scalatest" %% "scalatest" % "3.1.0" % Test withSources(),
"junit" % "junit" % "4.12" % Test
)
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
logLevel := Level.Warn
// Only show warnings and errors on the screen for compilations.
// This applies to both test:compile and compile and is Info by default
logLevel in compile := Level.Warn
// Level.INFO is needed to see detailed output when running tests
logLevel in test := Level.Info
name := "scalacourses-utils"
organization := "com.micronautics"
scalacOptions ++= (
scalaVersion {
case sv if sv.startsWith("2.10") => Nil
case _ => List(
"-target:jvm-1.8",
"-Ywarn-unused"
)
}.value ++ Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xlint"
)
)
scalacOptions in (Compile, doc) ++= baseDirectory.map {
bd: File => Seq[String](
"-sourcepath", bd.getAbsolutePath,
"-doc-source-url", "https://github.com/mslinn/scalacourses-utils/tree/master€{FILE_PATH}.scala"
)
}.value
scalacOptions in Test ++= Seq("-Yrangepos")
scalaVersion := "2.13.2"
scmInfo := Some(
ScmInfo(
url(s"https://github.com/mslinn/$name"),
s"git@github.com:mslinn/$name.git"
)
)
version := "0.3.5"