-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
34 lines (29 loc) · 1.46 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
import com.jsuereth.sbtpgp.PgpKeys.publishSigned
ThisBuild / organization := "org.scala-exercises"
ThisBuild / githubOrganization := "47degrees"
ThisBuild / scalaVersion := "2.13.10"
// 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-template")
.settings(
libraryDependencies ++= Seq(
"org.scala-exercises" %% "exercise-compiler" % "0.7.1",
"org.scala-exercises" %% "definitions" % "0.7.1",
"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"
),
dependencyOverrides += "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
)
.enablePlugins(ExerciseCompilerPlugin)
lazy val documentation = project
.settings(mdocOut := file("."))
.settings(publish / skip := true)
.enablePlugins(MdocPlugin)