/
build.sbt
77 lines (67 loc) · 2.51 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
ThisBuild / tlBaseVersion := "0.1"
ThisBuild / organization := "works.pugcode"
ThisBuild / organizationName := "Pugilistic Codeworks"
ThisBuild / homepage := Some(new URL("https://schema-manager.pugcode.works"))
ThisBuild / organizationHomepage := Some(new URL("https://pugcode.works"))
ThisBuild / startYear := Some(2020)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers ++= List(
// your GitHub handle and name
tlGitHubDev("notNotDaniel", "Daniel Keller")
)
// TODO: scala 2.12 and scala3
val Scala213Version = "2.13.11"
ThisBuild / crossScalaVersions := Seq(Scala213Version)
ThisBuild / scalaVersion := Scala213Version
// Setup GitHub actions
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
// Dependency versions
val catsEffectVersion = "3.4.10"
val doobieVersion = "1.0.0-RC2"
lazy val root = (project in file(".")).settings(
name := "pug-schema-manager",
description := "Functional schema management via Doobie",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-collections-core" % "0.9.6",
// "core" module - IO, IOApp, schedulers
"org.typelevel" %% "cats-effect" % catsEffectVersion,
"org.typelevel" %% "cats-effect-kernel" % catsEffectVersion,
"org.typelevel" %% "cats-effect-std" % catsEffectVersion,
"org.typelevel" %% "cats-effect-testkit" % catsEffectVersion % Test,
// better-monadic-for compiler plugin as suggested by cats-effect documentation
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
"org.typelevel" %% "munit-cats-effect-3" % "1.0.7" % Test,
// Doobie
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-postgres" % doobieVersion,
"org.tpolecat" %% "doobie-hikari" % doobieVersion,
"org.tpolecat" %% "doobie-h2" % doobieVersion % Test,
"org.tpolecat" %% "doobie-munit" % doobieVersion % Test,
// Logging
"ch.qos.logback" % "logback-classic" % "1.4.5",
"org.typelevel" %% "log4cats-slf4j" % "2.5.0"
)
)
lazy val docs = project
.in(file("mdoc-project"))
.dependsOn(root)
.enablePlugins(NoPublishPlugin)
.enablePlugins(TypelevelSitePlugin)
.settings(
tlSitePublishBranch := Some("main"),
tlSiteHelium ~= { helium =>
import laika.helium.config._
helium.site
.topNavigationBar(
homeLink = IconLink.external("https://pugcode.works", HeliumIcon.home)
)
}
)
// Set compiler options
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-language:postfixOps",
"-language:implicitConversions"
)