-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
106 lines (101 loc) · 2.88 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
inThisBuild(List(
scalaVersion := "2.13.7",
crossScalaVersions := Seq(scalaVersion.value),
organization := "com.iterable",
organizationName := "Iterable",
homepage := Some(url("https://github.com/Iterable/scalasoup")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(url("https://github.com/Iterable/scalasoup"), "scm:[email protected]:Iterable/scalasoup.git")
),
developers := List(
Developer(
"danielnixon",
"Daniel Nixon",
url("https://github.com/danielnixon")
),
Developer(
"JonMcPherson",
"Jon McPherson",
url("https://www.iterable.com")
),
)
))
// See https://github.com/sbt/sbt-ci-release
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
val commonSettings = Seq(
// publishTo := sonatypePublishToBundle.value,
// TODO https://tpolecat.github.io/2017/04/25/scalac-flags.html
scalacOptions := Seq(
"-deprecation",
),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.1.4" % Test
),
// TODO: WartRemover, scalafmt, etc.
(Compile / compile / wartremoverErrors) := Seq(
// Wart.Any,
Wart.AnyVal,
Wart.ArrayEquals,
Wart.AsInstanceOf,
Wart.DefaultArguments,
Wart.EitherProjectionPartial,
Wart.Enumeration,
Wart.Equals,
Wart.ExplicitImplicitTypes,
Wart.FinalCaseClass,
Wart.FinalVal,
// Wart.ImplicitConversion,
// Wart.ImplicitParameter,
Wart.IsInstanceOf,
Wart.IterableOps,
Wart.JavaConversions,
Wart.JavaSerializable,
Wart.LeakingSealed,
Wart.MutableDataStructures,
// Wart.NonUnitStatements,
// Wart.Nothing,
Wart.Null,
Wart.Option2Iterable,
Wart.OptionPartial,
// Wart.Overloading,
Wart.Product,
Wart.PublicInference,
Wart.Recursion,
Wart.Return,
Wart.Serializable,
Wart.StringPlusAny,
Wart.Throw,
Wart.ToString,
Wart.TryPartial,
Wart.Var,
Wart.While
)
)
lazy val root = (project in file(".")).
settings(commonSettings:_*).
aggregate(core, dsl)
lazy val core = (project in file("core")).
settings(commonSettings:_*).
settings(
name := "scalasoup",
libraryDependencies ++= Seq(
"org.jsoup" % "jsoup" % "[1.15.1,)",
"eu.timepit" %% "refined" % "0.10.3",
"org.http4s" %% "http4s-blaze-client" % "0.23.14" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test
)
)
lazy val dsl = (project in file("dsl")).
settings(commonSettings:_*).
settings(
name := "scalasoup-dsl",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.6.0",
"org.typelevel" %% "cats-free" % "2.6.0"
)
).
dependsOn(core)