-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
65 lines (58 loc) · 1.32 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
import Common._
import Dependencies.Version.scala213
name := """play-hmac-signatures"""
enablePlugins(Common, Dependencies)
inThisBuild(
List(
scalaVersion := scala213,
crossScalaVersions := Seq(scala213),
scalafixScalaBinaryVersion := "2.13",
versionScheme := Some("early-semver"),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions += "-Ywarn-unused",
scalacOptions += "-Xcheckinit",
sonatypePublishTo := Some({
if (isSnapshot.value)
Opts.resolver.sonatypeOssSnapshots.head
else
Opts.resolver.sonatypeStaging
}),
scmInfo := Some(
ScmInfo(
url(s"https://github.com/$gitAccount/$repoName"),
s"[email protected]:$gitAccount/$repoName.git"
)
)
)
)
// Fixing Scala-Xml mess (Temp).
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)
addCommandAlias(
"validateCode",
List(
"scalafix",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"test:scalafix",
"test:scalafmtCheckAll"
).mkString(";")
)
addCommandAlias(
"formatCode",
List(
"scalafmt",
"scalafmtSbt",
"Test/scalafmt"
).mkString(";")
)
addCommandAlias(
"testWithCoverage",
List(
"coverage",
"test",
"coverageReport"
).mkString(";")
)