|
1 | 1 | import com.jsuereth.sbtpgp.PgpKeys.publishSigned
|
2 | 2 |
|
| 3 | +ThisBuild / organization := "org.scala-exercises" |
| 4 | +ThisBuild / githubOrganization := "47degrees" |
| 5 | +ThisBuild / scalaVersion := "2.13.2" |
| 6 | + |
| 7 | +publish / skip := true |
| 8 | + |
| 9 | +// This is required by the exercises compiler: |
3 | 10 | publishLocal := (publishLocal dependsOn compile).value
|
4 | 11 | publishSigned := (publishSigned dependsOn compile).value
|
5 | 12 |
|
6 | 13 | addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
|
7 |
| -addCommandAlias("ci-docs", "github; project-docs/mdoc; headerCreateAll") |
| 14 | +addCommandAlias("ci-docs", "github; documentation/mdoc; headerCreateAll") |
| 15 | +addCommandAlias("ci-publish", "github; ci-release") |
8 | 16 |
|
9 | 17 | lazy val exercises = (project in file("."))
|
10 |
| - .settings(moduleName := "exercises-scalatutorial") |
11 |
| - .settings(exercisesSettings) |
| 18 | + .settings(name := "exercises-scalatutorial") |
| 19 | + .settings( |
| 20 | + libraryDependencies ++= Seq( |
| 21 | + "org.scala-exercises" %% "exercise-compiler" % "0.6.1", |
| 22 | + "org.scala-exercises" %% "definitions" % "0.6.1", |
| 23 | + "com.chuusai" %% "shapeless" % "2.3.3", |
| 24 | + "org.scalatest" %% "scalatest" % "3.1.2", |
| 25 | + "org.scalacheck" %% "scalacheck" % "1.14.3", |
| 26 | + "org.scalatestplus" %% "scalacheck-1-14" % "3.1.2.0", |
| 27 | + "com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % "1.2.5" |
| 28 | + ) |
| 29 | + ) |
12 | 30 | .enablePlugins(ExerciseCompilerPlugin)
|
13 | 31 |
|
14 |
| -lazy val `project-docs` = (project in file(".docs")) |
15 |
| - .aggregate(exercises) |
16 |
| - .dependsOn(exercises) |
17 |
| - .settings(moduleName := "exercises-project-docs") |
18 |
| - .settings(mdocIn := file(".docs")) |
| 32 | +lazy val documentation = project |
19 | 33 | .settings(mdocOut := file("."))
|
20 |
| - .settings(skip in publish := true) |
| 34 | + .settings(publish / skip := true) |
21 | 35 | .enablePlugins(MdocPlugin)
|
0 commit comments