-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
88 lines (76 loc) · 2.6 KB
/
build.sc
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
83
84
85
86
87
88
import $ivy.`com.goyeau::mill-scalafix::0.2.10`
import com.goyeau.mill.scalafix.ScalafixModule
import mill._, scalalib._, scalafmt._
import mill.scalalib.publish._
val Scala13 = "2.13.8"
trait StyleModule extends ScalafmtModule with ScalafixModule {
override def scalafixIvyDeps = super.scalafixIvyDeps() ++ Agg(
ivy"com.github.liancheng::organize-imports:0.6.0",
ivy"org.typelevel::typelevel-scalafix:0.1.5"
)
override def scalacOptions =
super.scalacOptions() ++ Seq(
"-encoding",
"UTF-8",
"-deprecation",
"-unchecked",
"-feature",
"-Ywarn-unused",
"-Ywarn-dead-code",
"-Ywarn-value-discard",
"-Xfatal-warnings",
"-language:higherKinds"
)
override def scalaDocOptions = super.scalaDocOptions() ++ Seq("-no-link-warnings")
override def scalacPluginIvyDeps = super.scalacPluginIvyDeps() ++ Agg(
ivy"com.olegpy::better-monadic-for:0.3.1",
ivy"org.typelevel:::kind-projector:0.13.2"
)
}
trait CommonModule
extends ScalaModule
with StyleModule
with PublishModule {
def publishVersion: T[String] = "0.1.0"
override def pomSettings: T[PomSettings] = PomSettings(
description = "Mock4s - mocked API server built on Http4s",
organization = "com.github.morgen-peschke",
url = "https://github.com/morgen-peschke/mock4s",
licenses = Seq(License.MIT),
versionControl = VersionControl.github("morgen-peschke", "mock4s"),
developers = Seq(
Developer(
"morgen-peschke",
"Morgen Peschke",
"https://github.com/morgen-peschke"
)
)
)
}
object core extends CommonModule {
override def scalaVersion: T[String] = Scala13
override def ivyDeps =
Agg(
ivy"com.beachape::enumeratum:1.7.0",
ivy"com.lihaoyi::sourcecode:0.3.0",
ivy"com.monovore::decline:2.3.0",
ivy"de.marhali:json5-java:2.0.0",
ivy"io.circe::circe-core:0.14.1",
ivy"io.circe::circe-parser:0.14.1",
ivy"is.cir::ciris:3.1.0",
ivy"org.http4s::http4s-circe:1.0.0-M39",
ivy"org.http4s::http4s-dsl:1.0.0-M39",
ivy"org.http4s::http4s-ember-client:1.0.0-M39",
ivy"org.http4s::http4s-ember-server:1.0.0-M39",
ivy"org.rudogma::supertagged:2.0-RC2",
ivy"org.typelevel::log4cats-slf4j:2.5.0"
)
override def runIvyDeps = Agg(ivy"ch.qos.logback:logback-classic:1.2.10")
object test extends Tests with TestModule.Munit with StyleModule {
override def ivyDeps: T[Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"org.scalacheck::scalacheck:1.17.0",
ivy"org.scalameta::munit-scalacheck:0.7.29",
ivy"org.scalameta::munit:0.7.29"
)
}
}