This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (49 loc) · 1.57 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
name := "cli-micro-tools"
organization := "de.21re"
version := {
"0.1-" + sys.props.get("BUILD_NUMBER").orElse(sys.env.get("BUILD_NUMBER")).getOrElse("SNAPSHOT")
}
scalaVersion := "2.13.0"
crossScalaVersions := Seq("2.13.0")
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-target:jvm-1.8",
"-unchecked",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Xlint"
)
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.3" % Provided,
"ch.qos.logback" % "logback-classic" % "1.1.7" % Provided,
"org.scalatest" %% "scalatest" % "3.0.8" % Test
)
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
resolvers += "21re-bintray" at "http://dl.bintray.com/21re/public"
publishMavenStyle := true
bintrayOrganization := Some("21re")
bintrayRepository := "public"
bintrayCredentialsFile := {
sys.props
.get("BINTRAY_CREDENTIALS")
.orElse(sys.env.get("BINTRAY_CREDENTIALS"))
.map(new File(_))
.getOrElse(baseDirectory.value / ".bintray" / "credentials")
}
lazy val mainSourcesScalaStyle = taskKey[Unit]("mainSourcesScalaStyle")
mainSourcesScalaStyle := org.scalastyle.sbt.ScalastylePlugin.autoImport.scalastyle
.in(Compile)
.toTask("")
.value
(test in Test) := { (test in Test) dependsOn mainSourcesScalaStyle }.value
enablePlugins(ScalafmtPlugin)
scalafmtVersion := "0.6.8"
(compile in Compile) := {
(compile in Compile) dependsOn (scalafmt in Compile).toTask
}.value
(compile in Test) := {
(compile in Test) dependsOn (scalafmt in Test).toTask
}.value