Skip to content

Commit

Permalink
Workaround explicit deps bugs ...
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Aug 21, 2023
1 parent 2829b72 commit 751731d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ lazy val core = project
.in(file("core"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-http4s-org"
name := "sbt-http4s-org",
unusedCompileDependenciesFilter -= moduleFilter("org.typelevel", "sbt-typelevel"),
unusedCompileDependenciesFilter -= moduleFilter("org.typelevel", "sbt-typelevel-scalafix"),
unusedCompileDependenciesFilter -= moduleFilter("org.typelevel", "sbt-typelevel-site")
)

lazy val docs = project
Expand Down
8 changes: 8 additions & 0 deletions core/src/main/scala/org/http4s/sbt/Http4sOrgPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import sbt.Keys._
import sbt._
import scalafix.sbt.ScalafixPlugin.autoImport._

import ExplicitDepsPlugin.autoImport._
import GenerativeKeys._
import TypelevelCiPlugin.autoImport._
import TypelevelSonatypePlugin.autoImport._
Expand All @@ -35,6 +36,8 @@ object Http4sOrgPlugin extends AutoPlugin {
override def buildSettings =
publishSettings ++ organizationSettings ++ githubActionsSettings ++ scalafixSettings

override def projectSettings = explicitDepsSettings

lazy val publishSettings: Seq[Setting[_]] =
Seq(
tlSonatypeUseLegacyHost := false
Expand Down Expand Up @@ -65,6 +68,11 @@ object Http4sOrgPlugin extends AutoPlugin {
githubWorkflowBuildMatrixFailFast := Some(false)
)

lazy val explicitDepsSettings: Seq[Setting[_]] =
Seq(
unusedCompileDependenciesFilter -= moduleFilter("org.typelevel", "scalac-compat-annotation")
)

lazy val scalafixSettings: Seq[Setting[_]] =
Seq(
scalafixScalaBinaryVersion := (LocalRootProject / scalaBinaryVersion).value,
Expand Down

0 comments on commit 751731d

Please sign in to comment.