This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
79 lines (71 loc) · 2.09 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
inThisBuild(
List(
organization := "org.polyvariant",
homepage := Some(url("https://github.com/polyvariant/doobie-quill")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"kubukoz",
"Jakub Kozłowski",
url("https://blog.kubukoz.com"),
)
),
Compile / doc / sources := Seq(),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
)
)
val Scala212 = "2.12.15"
val Scala213 = "2.13.7"
def crossPlugin(x: sbt.librarymanagement.ModuleID) = compilerPlugin(x.cross(CrossVersion.full))
val compilerPlugins = List(
crossPlugin("org.typelevel" % "kind-projector" % "0.13.2"),
crossPlugin("org.polyvariant" % "better-tostring" % "0.3.13"),
)
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / scalaVersion := Scala213
ThisBuild / crossScalaVersions := Seq(Scala212, Scala213)
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches += RefPredicate.StartsWith(Ref.Tag("v"))
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
WorkflowStep.Run(
List(
"docker-compose up -d"
)
)
)
ThisBuild / githubWorkflowBuildPostamble ++= Seq(
WorkflowStep.Run(
List(
"docker-compose down"
)
)
)
ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(
List("ci-release"),
env =
List(
"PGP_PASSPHRASE",
"PGP_SECRET",
"SONATYPE_PASSWORD",
"SONATYPE_USERNAME",
).map { envKey =>
envKey -> s"$${{ secrets.$envKey }}"
}.toMap,
)
)
val root = project
.in(file("."))
.settings(
name := "doobie-quill",
libraryDependencies ++= Seq(
"io.getquill" %% "quill-jdbc" % "3.14.1",
"org.tpolecat" %% "doobie-core" % "1.0.0-RC2",
"org.tpolecat" %% "doobie-postgres" % "1.0.0-RC2" % Test,
"org.scalameta" %% "munit" % "0.7.29" % Test,
) ++ compilerPlugins,
Test / fork := true,
)