1
- addCommandAlias(" check" , " ; scalafmtSbtCheck; scalafmtCheckAll; compile:scalafix --check ; test:scalafix --check" )
2
- addCommandAlias(" fix" , " ; scalafmtSbt; scalafmtAll; compile:scalafix ; test:scalafix" )
3
-
4
1
ThisBuild / organization := " com.avast"
5
2
ThisBuild / homepage := Some (url(" https://github.com/avast/scala-server-toolkit" ))
6
3
ThisBuild / description := " Functional programming toolkit for building server applications in Scala."
@@ -11,47 +8,10 @@ ThisBuild / scalaVersion := "2.13.0"
11
8
12
9
ThisBuild / turbo := true
13
10
14
- lazy val commonSettings = Seq (
11
+ lazy val commonSettings = BuildHelper .settingsCommon ++ Seq (
15
12
libraryDependencies ++= Seq (
16
- compilerPlugin(Dependencies .kindProjector),
17
- compilerPlugin(Dependencies .betterMonadicFor),
18
- compilerPlugin(Dependencies .silencer),
19
- compilerPlugin(scalafixSemanticdb), // for scalafix
20
- Dependencies .silencerLib,
21
13
Dependencies .catsEffect,
22
14
Dependencies .Test .scalaTest % Test
23
- ),
24
- Compile / compile / wartremoverErrors ++= Warts .all filterNot Set (
25
- Wart .Nothing , // keep, false positives all around
26
- Wart .Overloading ,
27
- Wart .Any , // keep, false positives all around
28
- Wart .Equals , // keep, easier that way
29
- Wart .ToString , // keep, easier that way
30
- Wart .Product , // keep, false positives all around
31
- Wart .Serializable // keep, false positives all around
32
- ),
33
- ThisBuild / scalafixDependencies ++= Seq (
34
- Dependencies .scalazzi // https://github.com/scalaz/scalazzi
35
- ),
36
- scalacOptions ++= Seq (
37
- " -Yrangepos" , // for scalafix. required by SemanticDB compiler plugin
38
- " -Ywarn-unused" , // for scalafix. not present in sbt-tpolecat for 2.13
39
- " -P:silencer:checkUnused"
40
- ),
41
- scalacOptions --= {
42
- if (! sys.env.contains(" TRAVIS" ))
43
- Seq (
44
- " -Xfatal-warnings" // for scala-fix https://scalacenter.github.io/scalafix/docs/rules/RemoveUnused.html
45
- )
46
- else
47
- Seq ()
48
- },
49
- Test / publishArtifact := false ,
50
- Test / test / wartremoverErrors := (Compile / compile / wartremoverErrors).value filterNot Set (
51
- Wart .MutableDataStructures ,
52
- Wart .OptionPartial ,
53
- Wart .AsInstanceOf ,
54
- Wart .EitherProjectionPartial
55
15
)
56
16
)
57
17
@@ -108,3 +68,6 @@ lazy val pureconfig = project
108
68
name := " scala-server-toolkit-pureconfig" ,
109
69
libraryDependencies += Dependencies .pureConfig
110
70
)
71
+
72
+ addCommandAlias(" check" , " ; scalafmtSbtCheck; scalafmtCheckAll; compile:scalafix --check ; test:scalafix --check" )
73
+ addCommandAlias(" fix" , " ; scalafmtSbt; scalafmtAll; compile:scalafix ; test:scalafix" )
0 commit comments