From 278d348fb80c43436f22e0697bc662cf1277be72 Mon Sep 17 00:00:00 2001 From: Jeff May Date: Fri, 30 Sep 2022 16:55:50 -0700 Subject: [PATCH] Update build to publish ScalaDoc with links --- build.sbt | 7 +++---- project/plugins.sbt | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 21b1c6bf..0eb198c1 100644 --- a/build.sbt +++ b/build.sbt @@ -28,10 +28,6 @@ ThisBuild / developers := List( Developer(id = "jeffmay", name = "Jeff May", email = "jeff.n.may@gmail.com", url = url("https://github.com/jeffmay")), ) -// ScalaDoc generation is generally broken. It's really mostly useful from within the IDE anyway -// so just disable generation to allow publishing without ScalaDoc errors. -ThisBuild / packageDoc / publishArtifact := false - // Disable publishing of the root project publish / skip := true @@ -49,6 +45,8 @@ def commonProject( .settings( name := s"vapors-$dir", idePackagePrefix.withRank(KeyRanks.Invisible) := Some(packagePrefix), + Compile / doc / scalacOptions += "--no-link-warnings", + Test / doc / scalacOptions += "--no-link-warnings", addCompilerPlugin(("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full)), ) } @@ -56,6 +54,7 @@ def commonProject( lazy val bench = commonProject("bench", "vapors") .dependsOn(`core-v1` % "test->test") // TODO: Include other projects for comparison .settings( + publish / skip := true, libraryDependencies ++= BenchProject.all, Test / parallelExecution := false, ) diff --git a/project/plugins.sbt b/project/plugins.sbt index b7432872..a8fc026d 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,6 @@ addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") +addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2") addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.3")