-
Notifications
You must be signed in to change notification settings - Fork 62
/
build.sbt
39 lines (33 loc) · 1.71 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
import com.jsuereth.sbtpgp.PgpKeys.publishSigned
ThisBuild / organization := "org.scala-exercises"
ThisBuild / githubOrganization := "47degrees"
ThisBuild / scalaVersion := "2.13.10"
// Required to prevent errors for eviction from binary incompatible dependency
// resolutions.
// See also: https://github.com/scala-exercises/exercises-cats/pull/267
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % "always"
// This is required by the exercises compiler:
publishLocal := (publishLocal dependsOn compile).value
publishSigned := (publishSigned dependsOn compile).value
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
addCommandAlias("ci-docs", "github; documentation/mdoc; headerCreateAll")
addCommandAlias("ci-publish", "github; ci-release")
lazy val exercises = (project in file("."))
.settings(name := "exercises-fpinscala")
.settings(
libraryDependencies ++= Seq(
"org.scala-exercises" %% "exercise-compiler" % "0.7.1",
"org.scala-exercises" %% "definitions" % "0.7.1",
"org.typelevel" %% "cats-core" % "2.9.0",
"com.chuusai" %% "shapeless" % "2.3.10",
"org.scalatest" %% "scalatest" % "3.2.15",
"org.scalacheck" %% "scalacheck" % "1.17.0",
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0",
"com.github.alexarchambault" %% "scalacheck-shapeless_1.15" % "1.3.0"
)
)
.enablePlugins(ExerciseCompilerPlugin)
lazy val documentation = project
.settings(mdocOut := file("."))
.settings(publish / skip := true)
.enablePlugins(MdocPlugin)