-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
24 lines (20 loc) · 1.11 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
ThisBuild / scalaVersion := _root_.scalafix.sbt.BuildInfo.scala212
ThisBuild / organization := "com.alejandrohdezma"
ThisBuild / pluginCrossBuild / sbtVersion := "1.2.8"
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
addCommandAlias("ci-test", "fix --check; versionPolicyCheck; mdoc; publishLocal; scripted")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
addCommandAlias("ci-publish", "versionCheck; github; ci-release")
lazy val documentation = project
.enablePlugins(MdocPlugin, SbtPlugin)
.dependsOn(`sbt-propagate`, `resource-generator`)
.settings(addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.6.2"))
lazy val `sbt-propagate` = module
.enablePlugins(SbtPlugin)
.settings(scriptedBatchExecution := false)
.settings(scriptedBufferLog := false)
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoPackage := "com.alejandrohdezma.sbt.propagate")
lazy val `resource-generator` = module
.settings(crossScalaVersions := Seq("2.12.20", "2.13.15", "3.3.4"))