-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
43 lines (35 loc) · 1.02 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
organization := "com.github.gphat"
name := "censorinus"
scalaVersion := "2.13.1"
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1")
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-language:_",
"-unchecked",
"-deprecation",
"-feature",
// "-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, x)) if x <= 12 => Seq(
"-Yno-adapted-args",
"-Ywarn-unused-import",
"-Ypartial-unification",
"-Xfuture",
"-Xfatal-warnings",
"-Xsource:2.13"
)
case _ => Seq.empty
})
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.1.0" % Test,
"org.scalatest" %% "scalatest" % "3.1.0" % Test,
"org.scalatestplus" %% "scalacheck-1-14" % "3.1.0.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.3" % Test
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
Publish.settings
scalastyleFailOnError := true