-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
44 lines (36 loc) · 2.18 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
ThisBuild / scalaVersion := _root_.scalafix.sbt.BuildInfo.scala212
ThisBuild / organization := "com.alejandrohdezma"
ThisBuild / pluginCrossBuild / sbtVersion := "1.2.8"
ThisBuild / Test / parallelExecution := false
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
addCommandAlias("ci-test", "fix --check; versionPolicyCheck; mdoc; test; publishLocal; scripted")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll; docusaurusPublishGhpages")
addCommandAlias("ci-publish", "versionCheck; github; ci-release")
val `sbt-mdoc` = "org.scalameta" % "sbt-mdoc" % "[2.0,)" % Provided // scala-steward:off
val `sbt-header` = "de.heikoseeberger" % "sbt-header" % "[5.6.0,)" % Provided // scala-steward:off
lazy val documentation = project.enablePlugins(MdocPlugin)
lazy val website = project
.enablePlugins(MdocPlugin, DocusaurusPlugin)
.settings(mdocIn := baseDirectory.value / "docs")
.settings(mdocOut := (Compile / target).value / "mdoc")
.settings(watchTriggers += mdocIn.value.toGlob / "*.md")
.settings(mdocVariables += "EXCLUDED" -> excludedContributors.value.mkString("- ", "\n- ", ""))
lazy val `sbt-github` = module
.enablePlugins(SbtPlugin)
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.settings(libraryDependencies += "org.typelevel" %% "jawn-parser" % "1.6.0")
.settings(libraryDependencies += "org.scalameta" %% "munit" % "1.0.4" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-dsl" % "0.23.30" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-blaze-server" % "0.23.17" % Test)
lazy val `sbt-github-mdoc` = module
.enablePlugins(SbtPlugin)
.dependsOn(`sbt-github`)
.settings(description := "Provides most of the info downloaded by sbt-github as mdoc variables")
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.settings(addSbtPlugin(`sbt-mdoc`))
lazy val `sbt-github-header` = module
.enablePlugins(SbtPlugin)
.dependsOn(`sbt-github`)
.settings(description := "Integration between sbt-github and sbt-header")
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.settings(addSbtPlugin(`sbt-header`))