forked from RMSone/slick-cats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
84 lines (72 loc) · 2.3 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
import _root_.io.github.nafg.mergify.dsl._
import _root_.io.github.nafg.mergify.Condition
name := "slick-cats-parent"
sourcesInBase := false
publish / skip := true
mergifyExtraConditions := Seq(
(Attr.Author :== "scala-steward") ||
(Attr.Author :== "slick-scala-steward[bot]") ||
(Attr.Author :== "renovate[bot]")
)
inThisBuild(Seq(
organization := "com.rms.miu",
scalaVersion := "2.12.17",
crossScalaVersions := Seq("2.12.17", "2.13.10"),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:implicitConversions",
"-language:higherKinds",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
)
))
val catsVersion = "2.12.0"
lazy val slickcats =
project.in(file("slick-cats"))
.settings(
name := "slick-cats",
description := "Cats instances for Slick's DBIO",
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.4.1",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-laws" % catsVersion % Test,
"org.typelevel" %% "discipline-scalatest" % "2.3.0" % Test,
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.scalacheck" %% "scalacheck" % "1.18.0" % Test
)
)
lazy val docs =
project.in(file("slick-cats-docs"))
.dependsOn(slickcats)
.enablePlugins(MdocPlugin)
.settings(
name := "slick-cats-docs",
mdoc / scalacOptions --= Seq("-Ywarn-unused-import", "-Xlint"),
publish / skip := true
)
licenses += ("BSD New", url("https://opensource.org/licenses/BSD-3-Clause"))
homepage := Some(url("https://github.com/rmsone/slick-cats"))
scmInfo := Some(
ScmInfo(
url("https://github.com/rmsone/slick-cats"),
"scm:[email protected]:rmsone/slick-cats.git"
)
)
developers := List(
Developer(id = "23will", name = "William Duncan", email = "", url("https://github.com/23will")),
Developer(id = "tvaroh", name = "Alexander Semenov", email = "", url("https://github.com/tvaroh")),
Developer(id = "frosforever", name = "Yosef Fertel", email = "", url("https://github.com/frosforever"))
)
publishMavenStyle := true
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)