Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: David Geirola <[email protected]>
  • Loading branch information
geirolz committed Feb 17, 2023
1 parent 0d5386a commit 772cd3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ lazy val docs: Project =
baseSettings,
noPublishSettings,
libraryDependencies ++= Seq(
ProjectDependencies.Docs.dedicated
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => ProjectDependencies.Docs.dedicated_2_13
case Some((3, _)) => ProjectDependencies.Docs.dedicated_3_2
case _ => Nil
}
).flatten,
// config
scalacOptions --= Seq("-Werror", "-Xfatal-warnings"),
Expand Down Expand Up @@ -87,6 +91,7 @@ lazy val example: Project = {
)
.enablePlugins(BuildInfoPlugin)
.settings(
noPublishSettings,
Compile / mainClass := Some(s"$appPackage.AppMain"),
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
Expand Down
3 changes: 2 additions & 1 deletion project/ProjectDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ object ProjectDependencies {
}

object Docs {
lazy val dedicated: Seq[ModuleID] = Examples.dedicated_2_13
lazy val dedicated_2_13: Seq[ModuleID] = Examples.dedicated_2_13
lazy val dedicated_3_2: Seq[ModuleID] = Examples.dedicated_3_2
}
}

0 comments on commit 772cd3d

Please sign in to comment.