forked from robinraju/slick-cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (58 loc) · 1.98 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
name := "slick-cats-parent"
sourcesInBase := false
publish / skip := true
val scala212 = "2.12.18"
val scala213 = "2.13.12"
val scala3 = "3.3.4"
val commonSettings = Seq(
organization := "com.rms.miu",
scalaVersion := scala213,
crossScalaVersions := Seq(scala212, scala213, scala3)
)
val catsVersion = "2.10.0"
lazy val slickcats =
project.in(file("slick-cats"))
.settings(commonSettings)
.settings(
name := "slick-cats",
description := "Cats instances for Slick's DBIO",
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.5.0",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-laws" % catsVersion % Test,
"org.typelevel" %% "discipline-scalatest" % "2.2.0" % Test,
"org.scalatest" %% "scalatest" % "3.2.17" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test
)
)
lazy val docs =
project.in(file("slick-cats-docs"))
.dependsOn(slickcats)
.enablePlugins(MdocPlugin)
.settings(commonSettings)
.settings(
name := "slick-cats-docs",
mdocOut := baseDirectory.value / "..",
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 := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}