-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
65 lines (54 loc) · 1.87 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
import Dependencies._
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.ruimorais"
ThisBuild / organizationName := "Rui Morais"
lazy val root = (project in file("."))
.settings(
name := "blog"
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
)
lazy val refinedVersion = "0.9.4"
lazy val catsVersion = "1.6.0"
lazy val catsEffectVersion = "1.2.0"
libraryDependencies ++= Seq(
"com.github.pureconfig" %% "pureconfig" % "0.10.2",
"eu.timepit" %% "refined" % refinedVersion,
"eu.timepit" %% "refined-cats" % refinedVersion,
"eu.timepit" %% "refined-pureconfig" % refinedVersion,
"eu.timepit" %% "refined-scalacheck" % refinedVersion,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-laws" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion,
"org.typelevel" %% "cats-effect-laws" % catsEffectVersion,
"org.scalatest" %% "scalatest" % "3.0.5",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.9")
/* Hugo */
enablePlugins(HugoPlugin)
sourceDirectory in Hugo := baseDirectory.value / "hugo"
baseURL in Hugo := uri("https://blog.ruimorais.com")
/* GitHubPages */
enablePlugins(GhpagesPlugin)
scmInfo := Some(ScmInfo(url("https://github.com/rmorais/blog"), "[email protected]:rmorais/blog.git"))
git.remoteRepo := scmInfo.value.get.connection
ghpagesNoJekyll := true
/* Mdoc */
enablePlugins(MdocPlugin)
mdocIn := baseDirectory.value / "posts"
mdocOut := (sourceDirectory in Hugo).value / "content" / "post"