Skip to content

Commit

Permalink
Refresh the build for http4s-otel4s migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Nov 21, 2023
1 parent ff44788 commit dbcd92f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 31 deletions.
25 changes: 3 additions & 22 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ import com.typesafe.tools.mima.core._

ThisBuild / tlBaseVersion := "0.3" // your current series x.y

ThisBuild / organization := "io.chrisdavenport"
ThisBuild / organizationName := "Christopher Davenport"
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)

ThisBuild / tlCiReleaseBranches := Seq("main")

// true by default, set to false to publish to s01.oss.sonatype.org
ThisBuild / tlSonatypeUseLegacyHost := true

ThisBuild / crossScalaVersions := Seq("2.12.18", "2.13.11", "3.3.0")
ThisBuild / scalaVersion := "3.3.0"

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / tlJdkRelease := Some(8)

ThisBuild / testFrameworks += new TestFramework("munit.Framework")

val catsV = "2.9.0"
val catsEffectV = "3.5.0"
val fs2V = "3.7.0"
Expand All @@ -33,21 +21,14 @@ val munitCatsEffectV = "2.0.0-M3"

val slf4jV = "1.7.30"


// Projects
lazy val `natchez-http4s-otel` = tlCrossRootProject
lazy val `http4s-otel4s` = tlCrossRootProject
.aggregate(core, examples)

lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "natchez-http4s-otel",
mimaBinaryIssueFilters ++= Seq(
ProblemFilters.exclude[DirectMissingMethodProblem]("io.chrisdavenport.natchezhttp4sotel.ClientMiddleware.request"),
ProblemFilters.exclude[DirectMissingMethodProblem]("io.chrisdavenport.natchezhttp4sotel.ServerMiddleware.request")
),

name := "http4s-otel4s",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
Expand Down Expand Up @@ -84,5 +65,5 @@ lazy val examples = project.in(file("examples"))
)

lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.enablePlugins(Http4sOrgSitePlugin)
.dependsOn(core.jvm)
10 changes: 1 addition & 9 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4.22")
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.4.22")
addSbtPlugin("org.typelevel" % "sbt-typelevel-settings" % "0.4.22")
addSbtPlugin("org.http4s" % "sbt-http4s-org" % "0.16.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.14")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.1")

addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.7" )

addSbtPlugin("com.armanbilge" % "sbt-scala-native-config-brew-github-actions" % "0.1.3")

0 comments on commit dbcd92f

Please sign in to comment.