Skip to content

Commit

Permalink
shade monix-newtypes to avoid sbt eviction complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Sep 13, 2024
1 parent 6eb9fba commit a2a440b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ lazy val root = tlCrossRootProject.aggregate(
lazy val `http4s-consul-middleware` = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("core"))
.enablePlugins(ShadingPlugin)
.settings(
description := "http4s middleware to discover the host and port for an HTTP request using Consul",
tpolecatScalacOptions += ScalacOptions.release("8"),
tlVersionIntroduced := Map("3" -> "0.3.1", "2.12" -> "0.0.1", "2.13" -> "0.0.1"),
scalacOptions ++= List("-Vimplicits").filter(_ => scalaVersion.value.startsWith("2.13")),
shadingVerbose := true,
shadedModules += "io.monix" %% "newtypes-core",
shadingRules += ShadingRule.moveUnder("monix", "shaded"),
validNamespaces ++= Set("com", "shaded"),
libraryDependencies ++= {
Seq(
"org.http4s" %%% "http4s-client" % http4sVersion,
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ addSbtPlugin("org.portable-scala" % "sbt-crossproject" % "1.3.2")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("com.disneystreaming.smithy4s" % "smithy4s-sbt-codegen" % "0.18.24")
addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.1.1")

libraryDependencies ++= {
val http4sVersion = "0.23.28"
Expand Down

0 comments on commit a2a440b

Please sign in to comment.